• Resolved epretorious

    (@epretorious)


    Hello, All:

    I’ve just completed a fresh installation of WP 4.5.3 and created a few pages (e.g., About, Tutorials, etc). I’ve created a new menu named “Overview”; added those pages to the menu, and; activated the “Top Primary Menu” and the “Secondary menu in left sidebar” locations.

    However, after deciding that I prefer the “Secondary menu in left sidebar” location to the “Primary” location – I’m not able to deactivate the “Top Primary Menu” location.

    How can I fix this?

    TIA,
    Eric Pretorious

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter epretorious

    (@epretorious)

    FWIW: I’ve verified the Menu:Location settings in the customizer and the main dashboard (Appearance:Menus).

    TIA,
    Eric Pretorious

    you could possibly use either CSS to hide the primary menu, or edit/remove the code for the primary menu in header.php in a child theme.

    this is the relevant code section:

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

    CSS to hide the menu:

    .primary-navigation { display: none; }
    Thread Starter epretorious

    (@epretorious)

    Thread Starter epretorious

    (@epretorious)

    Thanks, Michael – That was absolutely the shortest distance from the question to the answer!

    To expand upon the directions that you’ve provided: Directly below Line #974 of the CSS file $DOC_ROOT/wp-content/themes/twentyfourteen/style.css add the declaration “display: none;”. The revised CSS class declaration will look like this…

    .primary-navigation {
            display: none;
            -webkit-box-sizing: border-box;
            -moz-box-sizing:    border-box;
            box-sizing:         border-box;
            font-size: 14px;
            padding-top: 24px;
    }

    This will render the ‘primary-navigation’ class impotent and the navigation in the upper-righthand corner will no longer display.

    Eric Pretorious
    Portland, OR

    Thread Starter epretorious

    (@epretorious)

    FWIW: I read the excellent WPMUDEV tutorial “How to Create a WordPress Child Theme” and created a child theme (“Twenty Fourteen Child”) to store these customizations and others. ??

    .primary-navigation {
            display: none;
    }

    Eric Pretorious
    Portland, OR

    https://premium.wpmudev.org/blog/how-to-create-wordpress-child-theme/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Twenty Fourteen Theme: Top Primary Menu Won't Go Away’ is closed to new replies.