Twitter
LinkedIn
YouTube
RSS
Facebook
ClickBank1
ClickBank1

Remove a page link from the top menu navigation in WordPress

If you are into WordPress websites you will most likely come accross the problem of a page that you do not want showing appearing in the top navigation menu. Sometimes you can install a plugin to help customise the top navigation menu, however these plugins react differently for each WordPress theme. This is why I like to remove or exclude the pages I do not want in the top naviagtion menu manually. I do this by editing the php code in the header.php. 

How to remove or exclude a page from the navigation menu in WordPress?

1.  Sign in to your WordPress dashboard
2. Click on the appearance link in the side menu
3. Then choose editor
4. Some themes are different, however in this case I want to edit the header.php file
5. Click on header.php to edit
6. Find <?php wp_list_pages(‘title_li=’); ?> or something similar
7. Paste the new code in: <?php wp_list_pages(‘exclude=32&title_li=’); ?>
8. If you have menus with submenus than use this code: <?php wp_list_pages(‘depth=2,3,5&exclude= 2&title_li=’); ?> 

Watch this video tutorial showing you how to add the code into the header.php file. 

  


 

I am addicted to internet marketing and making money online. Who wouldn't want to live that life? I started out with one website as a hobby and now have over 20.
mitz
View all posts by mitz
s website

Related Posts

MaxBlogPress Ninja Affiliate



3 Responses to “Remove a page link from the top menu navigation in WordPress”

  1. Acer says:

    What about the same in the latest WordPress 3.0 ?
    Acer´s last blog ..Acer Aspire 4736Z Laptop – Windows 7My ComLuv Profile

  2. Casey says:

    Awesome. Just pasted the code into my header, on WordPress 3. Omitted the page.

    THANK YOU for the tip. Really saved me here.
    Casey´s last blog ..youtubeMy ComLuv Profile

  3. mitz says:

    Glad to help…It’s great to find the answer to a problem quickly without having to waste too much time.

Leave a Reply

CommentLuv Enabled