ThemeShaper Forums » Thematic

[closed]

How to hide certain pages from topmenu

(8 posts)
  • Started 3 years ago by fyrster
  • Latest reply from mrmikeman
  • This topic is not resolved

Tags:

  1. Hi everybody,

    Im new to Thematic, but i would like to know how i can hide certain pages from the topmenu ?

    Regards

    Rene

    Posted 3 years ago #
  2. I haven't worked with this plugin, but it looks like it might do the trick: http://wordpress.org/extend/plugins/exclude-pages/

    You could also do it through a function in your child theme:

    //  Add a dynamic menu using wp_list_pages
    
    function childtheme_menu() { ?>
         <div class="menu">
              <ul class="sf-menu">
                    <?php wp_list_pages('exclude=4&title_li='); ?>
              </ul>
         </div>
    <?php }
    
    add_action('wp_page_menu','childtheme_menu');

    In this case, page id 4 is being excluded. For more info about that, you could read here: http://wptheming.com/2009/11/filter-menus-in-thematic/

    Posted 3 years ago #
  3. gaillen
    Member

    You could also use the pagMash plug-in (I do, with Thematic) as it will both hide specific pages from the top menu and let you re-organize the order of the menu and sub menus.

    I would probably go with the Exclude Pages plug in and using the native Wordpress page order except that the visual interface of pagMash is easier for clients/parents to understand.

    Posted 3 years ago #
  4. This is over a year old but here we go...

    I'm not using a child theme (don't want to), anyway to remove certain pages from the top menu only?

    Thanks

    Posted 2 years ago #
  5. Hmmm... doesn't really make too much sense...

    Is it possible to remove only certain pages from the top menu without removing them from the sidebar?

    I think that's better :)

    Posted 2 years ago #
  6. maybe try using a custom 3.0 menu instead of wp_page_menu

    Posted 2 years ago #
  7. OK nevermind... I just figured out that in appearance >>> menus, all I had to do was create a new menu and select the pages I want in it... Donk!

    Don't know if that's what you meant but a google search for "custom 3.0 menu led me to this simple realisation. LOL

    THANK YOU helgatheviking !! :D

    Posted 2 years ago #
  8. mrmikeman
    Member

    you could just use a custom menu, then when you add a new page youll have to manually add that page to the custom menu... how has no one thought of this? oh wait now as i read the rest of the responses i see helga said it :-D

    Posted 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.