Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Electro - Show top bar in mobile header
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
You can’t perform that action at this time.