Permalink
Browse files

Merge pull request #1018 from mrwweb/tux-menu-naming

Change primary menu idea to menu-1: props @mrwweb
2 parents 9f60f7d + 396b9cb commit 9700947f741dbcf4b5059b44010079ad24a7dfaa @karmatosed karmatosed committed on GitHub Dec 23, 2016
Showing with 2 additions and 2 deletions.
  1. +1 −1 functions.php
  2. +1 −1 header.php
View
@@ -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' ),
) );
/*
View
@@ -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 -->

0 comments on commit 9700947

Please sign in to comment.