How to keep wordpress page out of menu bar?

Discussion in 'HTML & Website Design' started by downloadthenet, Sep 5, 2007.

  1. #1
    I'm using a free wordpress theme where the page (not posts) links show in the top menu bar. However, there are certain pages I don't want to show there. Can one of you wordpress experts tell me how to block specific pages.

    I'd also like to figure out how to put a static link in the menu bar.

    Thanks in advance.
     
    downloadthenet, Sep 5, 2007 IP
  2. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #2
    edit header.php with in the themes folder.
     
    just-4-teens, Sep 6, 2007 IP
  3. NineDesign

    NineDesign Peon

    Messages:
    237
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well thats just been extremely unhelpful.

    Which theme are you using? Can we have a link to your website?

    Either way, i've copied the HTML from my own Wordpress theme below;

    <h2>Navigation</h2>
    <ul>
    <li class="page_item"><a href="http://www.ninedesign.org/" title="Home">Home</a></li>
    <?php wp_list_pages('title_li=&sort_column=menu_order'); ?>
    </ul>

    It includes a static link that I inserted (Home) and then the WP tag that produces the other pages, assorting them in a way that I wanted.

    Check the Wordpress Codex (http://codex.wordpress.org/Template_Tags/wp_list_pages) to learn the arguements you can insert into the WP tag to exclude certain pages.
     
    NineDesign, Sep 6, 2007 IP
  4. downloadthenet

    downloadthenet Active Member

    Messages:
    497
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #4
    OK, it's fixed. I was dealing with a new forum plugin which was adding titles for all threads and posts into the menu, but fixed it by modifying header.php and adding static link.

    Thanks for your help.
     
    downloadthenet, Sep 6, 2007 IP