[Theme: toolbox] Remove sub-menu (3 posts)

  1. Somiac
    Posted 3 years ago #

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

    I think if its done through WordPress Menu's feature. Go to Appearance and Menu's and remove the children in the Primary Menu.

  3. m7csat
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic