You must be logged in to post
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Problem With Excluding Pages From Navigation Menu

UserPost

7:14 am
November 29, 2009


flextheme

Member

posts 6

1

Hello…

Using Flexibility 2 theme, with exclude pages plugin (as mentioned in this post: http://www.flexibilitytheme.com/forum/theme-customization/can-you-exclude-pages-from-navigation-bar/)

Problem is that using the exclude pages plugin removes the page from the navigation menu in the header (which is what I want), but it also removes ALL pages from the Pages widget in the sidebar.

I want the page removed from the nav menu but I want ALL pages to show in the Pages widget (unless I've specifically excluded them in the Pages Widget.)

Editing header.php to exclude certain pages as suggested in the above post did NOT work.

Does anyone have a solution to this? Thanks!

11:01 am
February 22, 2010


Ryan

Admin

posts 1252

2

Within the navigation code, there is an exclude= option. If you enter the pages you want to exclude separated by commas, you can exclude the pages that way. But there are two locations in the header.php file where you can edit the code depending on if your navigation is above or below the header. So edit both to make sure you're editing the right one.