Electro - Show top bar in mobile header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function electro_top_bar() { | |
if ( apply_filters( 'electro_enable_top_bar', true ) ) : ?> | |
<div class="top-bar"> | |
<div class="container"> | |
<?php | |
wp_nav_menu( array( | |
'theme_location' => 'topbar-left', | |
'container' => false, | |
'depth' => 2, | |
'menu_class' => 'nav nav-inline pull-left animate-dropdown flip', | |
'fallback_cb' => 'wp_bootstrap_navwalker::fallback', | |
'walker' => new wp_bootstrap_navwalker() | |
) ); | |
wp_nav_menu( array( | |
'theme_location' => 'topbar-right', | |
'container' => false, | |
'depth' => 2, | |
'menu_class' => 'nav nav-inline pull-right animate-dropdown flip', | |
'fallback_cb' => 'wp_bootstrap_navwalker::fallback', | |
'walker' => new wp_bootstrap_navwalker() | |
) ); | |
?> | |
</div> | |
</div><!-- /.top-bar --> | |
<?php endif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment