Skip to content

Commit

Permalink
change primary menu idea to menu-1 to align with new Automattic "Them…
Browse files Browse the repository at this point in the history
…e User Experiences Requirements"
  • Loading branch information
mrwweb committed Sep 16, 2016
1 parent ff4b374 commit 396b9cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions.php
Expand Up @@ -44,7 +44,7 @@ function _s_setup() {

// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => esc_html__( 'Primary', '_s' ),
'menu-1' => esc_html__( 'Primary', '_s' ),
) );

/*
Expand Down
2 changes: 1 addition & 1 deletion header.php
Expand Up @@ -42,7 +42,7 @@

<nav id="site-navigation" class="main-navigation" role="navigation">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', '_s' ); ?></button>
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) ); ?>
<?php wp_nav_menu( array( 'theme_location' => 'menu-1', 'menu_id' => 'primary-menu' ) ); ?>
</nav><!-- #site-navigation -->
</header><!-- #masthead -->

Expand Down

0 comments on commit 396b9cb

Please sign in to comment.