ThemeShaper Forums » Thematic

[closed]

Hiding a page from the menu

(8 posts)
  • Started 11 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 11 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 11 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 11 years ago #
  4. I will try it, thank you!

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

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

    Posted 11 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 10 years ago #
  8. Answered this question a few hours ago. Go with the second method I described here:

    http://forums.themeshaper.com/topic/how-to-hide-certain-pages-from-topmenu

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.