ThemeShaper Forums » Thematic

Hiding a page from the menu

(8 posts)
  • Started 3 years ago by dannydamnboy
  • Latest reply from Devin
  • This topic is resolved
  1. Probably this is a silly question but how can I hide a page from the menu bar?
    any ideas?

    Posted 3 years ago #
  2. 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 #
  3. Ups .. the edit Box display html :-)
    See the funktion sample_nav() in the hooks-filters.php and put it in your own function.php

    Posted 3 years ago #
  4. I will try it, thank you!

    Posted 3 years ago #
  5. Even better: http://wordpress.org/extend/plugins/exclude-pages/

    Posted 3 years ago #
  6. Ian, you are the best! Thank you!

    Posted 3 years ago #
  7. 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 #
  8. 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 #

RSS feed for this topic

Reply

You must log in to post.