WordPress.org

Support

Support » Themes and Templates » [Theme: toolbox] Remove sub-menu

[Theme: toolbox] Remove sub-menu

  • I’m trying to remove the sub-menu drop down for the main menu at the top. I’ve read this here – http://codex.wordpress.org/Template_Tags/wp_list_pages#Notes

    But I haven’t used wordpress for quite sometime and don’t exactly remember where to edit to adjust these codes.

    The code in the header is currently as below

    <nav id="access" role="navigation">
    				<h1 class="assistive-text section-heading"><?php _e( 'Main menu', 'toolbox' ); ?></h1>
    				<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'toolbox' ); ?>"><?php _e( 'Skip to content', 'toolbox' ); ?></a></div>
    
    				<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    			</nav><!-- #access -->
Viewing 2 replies - 1 through 2 (of 2 total)
  • I think if its done through WordPress Menu’s feature. Go to Appearance and Menu’s and remove the children in the Primary Menu.

    You first have to create a menu if you don’t have one, because it sounds like WordPress is creating a menu based on the page structure.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Theme: toolbox] Remove sub-menu’ is closed to new replies.
Skip to toolbar