You must be logged in to post
Search Forums:


 






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

Can you exclude pages from navigation bar?

UserPost

6:54 am
July 4, 2009


bieke81

New Member

posts 2

1

A friend of mine has the flexibility theme on her website.  She wants a page as her homepage, which I created and I have another page to have the blog posts.  Because I called the static homepage "home" in the navigation bar there are two "home" tabs.  Is there a way to exclude certain pages so they don't show up in the navigation bar?

Leslie

5:57 am
July 5, 2009


bieke81

New Member

posts 2

2

no one has an answer for me?

6:25 am
July 6, 2009


Ryan

Admin

posts 1523

3

Just use an exclude pages plugin.  Search for it in your Add Plugin page.

9:23 am
July 7, 2009


perrydyse

Orlando, Fl

New Member

posts 2

4

If you have two home pages it's because one is a page and the other is the original "Hello World" post. Go to your Settings>reading and set (your) "Home" as static and the other home (Hello World) will no longer show. If you want to include a blog into your static site, create a page called "Blog" (for example) and go to the Settings>Reading and set the Posts (right under the static you set) to the Blog page.

You can also use PageMash to hide any page you like.

Hope this helps.

Larry Perry
Perrydyse Marketing. Local & Long Distance SEO/SEM

7:54 am
October 15, 2009


Joni Solis

Greensburg, Louisiana

Member

posts 11

5

I just installed the WordPress Plugin "pageMash" and it works great. I have WordPress Version 2.8.4

pageMash – pageManagement

Just drag the pages up or down to change the page order and left or right to change the page`s parent, then hit "update".
The icon to the left of each page shows if it has child pages, double click on that item to toggle expand|collapse of it`s children.

A Love for Horses ~ http://alove4horses.com
Horse-Logos ~ http://www.horse-logos.com

10:58 pm
October 18, 2009


paradoxica

Member

posts 8

6

I tried pagemash but I couldn't get it to do what I needed. I have a page that I want to exclude from the top navigation bar but still have it accessible when someone clicks to it from a link in an article.

Pagemash hid the page entirely and wouldn't let it be accessible from a link.

However, I found this plugin (Exclude pages) which inserts a simple check box into the page so you can choose to hide it from the navigation menu. It works great because it remains accessible from a link in an article. It's here:  http://wordpress.org/extend/plugins/exclude-pages/

7:43 am
November 13, 2009


k6x

Member

posts 3

7

you can edit your header theme.

look for this

    <?php echo preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i', '<li$1><a$2><span>$3</span></a>', wp_list_pages('echo=0&orderby=name&exclude=&title_li=&depth=1')); ?>

in your header theme, there will be two, one at the top for the 'header at top' configuration, and one at the bottom for te one at the bottom.  where it says exclude=  just add in the numbers of the pages in paranthesis like this

    <?php echo preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i', '<li$1><a$2><span>$3</span></a>', wp_list_pages('echo=0&orderby=name&exclude=(2,3,6)&title_li=&depth=1')); ?>

you can find the number of your page by editing it in your admin area, and looking at the web address of the page you are currently editing.

This will taek them out of the nav bar, but leave them in the pages widget.