Skip to content

Commit

Permalink
Fixed menu location of custom menu
Browse files Browse the repository at this point in the history
  • Loading branch information
apzeero committed Apr 29, 2019
1 parent d68f29f commit b174530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function teamwpugph_setup() {

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

/*
Expand Down
1 change: 1 addition & 0 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
</div>
<?php
wp_nav_menu( array(
'theme_location' => 'primary-menu',
'container_class' => 'uk-navbar-center',
'menu_class' => 'uk-navbar-nav',
'items_wrap' => '<ul class="%2$s">%3$s</ul>',
Expand Down

0 comments on commit b174530

Please sign in to comment.