Make topbar show "topbar" menu instead of "primary"
This commit is contained in:
parent
1493d32a8b
commit
adfbe88c31
1 changed files with 3 additions and 3 deletions
|
@ -26,9 +26,9 @@
|
|||
<nav role="navigation" class="topbar">
|
||||
<a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'independent-publisher' ); ?>"><?php _e( 'Skip to content', 'independent-publisher' ); ?></a>
|
||||
|
||||
<?php // If this is a Single Post and we have a menu assigned to the "Single Posts Menu", show that ?>
|
||||
<?php if ( is_single() && has_nav_menu( 'single' ) ) : ?>
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'single', 'depth' => 1 ) ); ?>
|
||||
<?php // Show topbar menu if set, else primary menu ?>
|
||||
<?php if ( has_nav_menu( 'topbar' ) ) : ?>
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'topbar', 'depth' => 1 ) ); ?>
|
||||
<?php else : ?>
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'depth' => 1 ) ); ?>
|
||||
<?php endif; ?>
|
||||
|
|
Loading…
Reference in a new issue