Probably this is a silly question but how can I hide a page from the menu bar?
any ideas?
ThemeShaper Forums » Thematic
Hiding a page from the menu
(8 posts)-
Posted 3 years ago #
-
Put this in your own function.php
function junction_nav() { ?> <div class="menu"> <ul> <div class="button"> <li><a href="http://www.bendler.tv/?page_id=22"><span>XBox 360</span></a></li> </div><!-- .button --> <div class="button"> <li><a href="http://www.bendler.tv/?page_id=20"><span>Rendering</span></a></li> </div><!-- .button --> <div class="button"> <li><a href="http://www.bendler.tv/?page_id=20"><span>Fotos</span></a></li> </div><!-- .button --> <div class="button"> <li><a href="http://www.bendler.tv/?page_id=20"><span>Björn</span></a></li> </div><!-- .button --> </ul> </div><!-- .menu --> <?php } add_filter('wp_page_menu', 'junction_nav');This overwrites the standart wp_page_menu with your own list of sites.
Posted 3 years ago # -
Ups .. the edit Box display html :-)
See the funktion sample_nav() in the hooks-filters.php and put it in your own function.phpPosted 3 years ago # -
I will try it, thank you!
Posted 3 years ago # -
Even better: http://wordpress.org/extend/plugins/exclude-pages/
Posted 3 years ago # -
Ian, you are the best! Thank you!
Posted 3 years ago # -
what if i just want to hide it from the top menu and not the sidebar any good plugins or suggestions for this?
Posted 1 year ago # -
Answered this question a few hours ago. Go with the second method I described here:
http://themeshaper.com/forums/topic/how-to-hide-certain-pages-from-topmenu
Posted 1 year ago #
Reply
You must log in to post.