Wordpress: How to Remove Page Links from Header?

4 replies
They have a widget to remove pages that are automatically added to the sidebar, but I don't see one for the header. It's annoying because whenever I put up an article, it's put on the main header. This, of course, gets very messy.

Is there any easy way to explain this to a Wordpress/html 'tard like me?

Thanks.
#header #links #page #remove #wordpress
  • Profile picture of the author yunoblog
    You can PM the URL of your website and I can tell you what code to remove.
    {{ DiscussionBoard.errors[2260193].message }}
  • Profile picture of the author AndyBeard
    Lots of things are theme dependent, and many themes shouldn't be directly edited to avoid issues with upgrading in the future

    2 good options

    1. WordPress has just released 3.0 and has a custom menu editor providing the theme supports custom menus

    2. There are lots of plugins for editing existing menus. One I have found very useful is Pagemash
    JoelStarnes: pageMash

    The code method if you were to go that way is to use child themes and a functions.php

    Below is some example code I use with the thematic theme framework to just have 2 items on a menu - it isn't universal, every theme is coded different though most would use wp_list_pages - you can either include or exclude pages.

    PHP Code:
    function childtheme_menu() { ?>
         <div class="menu">
              <ul class="sf-menu">
                    <?php wp_list_pages('include=2,15&sort_column=post_date&title_li='); ?>
              </ul>
         </div>
    <?php }
     
    add_action('wp_page_menu','childtheme_menu');
    {{ DiscussionBoard.errors[2260222].message }}
  • Profile picture of the author Kelly Verge
    There's a plugin that easily does this: Exclude Pages from Navigation

    It adds a tickbox to remove a page from the navigation bar (header) as you create it.
    {{ DiscussionBoard.errors[2260281].message }}
  • Profile picture of the author GCostanza
    That's an awesome plugin, thanks Kelly.

    Thanks everyone else for help as well.
    Signature

    {{ DiscussionBoard.errors[2260352].message }}

Trending Topics