• 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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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 …

    Thread Starter doooomed

    (@doooomed)

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

    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–>

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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: https://codex.www.ads-software.com/Child_Themes

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable menu…twentyten template’ is closed to new replies.