Support » Theme: Fifteen » Remove Navigation Menu

  • Resolved MarkMesiya

    (@markmesiya)


    How can I remove the navigation menu? I only want my pages listed in the header menu and don’t want the menu that displays below the social media icons.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter MarkMesiya

    (@markmesiya)

    Found it in the header-single.php.

    Had to remove the following code block:

    <nav id="site-navigation" class="main-navigation" role="navigation">
    	         <div id="nav-container">
    				<h1 class="menu-toggle"><?php _e('Menu','fifteen'); ?></h1>
    				<div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'fifteen' ); ?>"><?php _e( 'Skip to content', 'fifteen' ); ?></a></div>
    
    				<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    	          </div>
    			</nav>

    How do you remove that codeblock?

    Karalaney.net

    Is there an easy way to choose which menu you want in the theme Fifteen?

    Seems that there are 2 menu’s and I can’t figure out how to remove one or the other.

    I’ve experimented straight on, but no results.

    One menu is at the top … and the other is in the middle of the header.

    I would like to remove the one in the middle of the header as it blocks the header image and may confuse visitors.

    Can anyone elaborate on how to remove the menu in the middle of the header?

    Thanks in advance.

    Can anyone elaborate on how to remove the menu in the middle of the header?

    The markup for that menu has this id #header-2, see Line#60
    https://themes.trac.wordpress.org/browser/fifteen/1.0.0.8/header.php#L60

    So we can just put this in Custom CSS plugin to display none it.

    #header-2 { display: none; }

    In case of Jetpack plugin already in use, just enable the Edit CSS module and use the code there.

    hyrnrg

    (@hyrnrg)

    when you do this how will the top menu allow for a dropdown/sub categories in that menu?

    paulwpxp

    (@paulwp)

    @hyrnrg , to achieve that I think it’s easier to remove top menu and reposition secondary menu to the top. I suggest posting this question on its own so it’d get noticed and I’m sure someone be able to help with the code.

    Post the question regarding this theme here
    https://wordpress.org/support/theme/fifteen

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove Navigation Menu’ is closed to new replies.