Forums

Disable menu...twentyten template (5 posts)

  1. doooomed
    Member
    Posted 1 year ago #

    Hello...I am trying to deactivate the header menu. (all menu's actually) I have done it before but can't seem to remember what I did. I am using the twentyten template. Thank you!

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    if ( deactivate == remove ) :

    edit header.php and remove:

    <div id="access" role="navigation">
    			  <?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    				<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
    				<?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */ ?>
    				<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    			</div><!-- #access -->

    gone for ever ...

  3. doooomed
    Member
    Posted 1 year ago #

    Thanks...I may end up using that, but I did it differently before...not sure what I did

  4. kimschmidt
    Member
    Posted 1 year ago #

    You don't actually have to remove the text - you can just cancel it out using the following code.

    <!-- at the beginning of the code and at the end put -->

    for example
    <!-- <div id="access"...
    </div> --> <!-- #access-->

  5. Or change your css to have 'access' display:none :)

    FYI, if you make changes to twentyten, they will be LOST when you upgrade WordPress, so consider Child Themes: http://codex.wordpress.org/Child_Themes

Topic Closed

This topic has been closed to new replies.

About this Topic