Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created February 15, 2017 04:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibndawood/d3d440086017b140d3865068aa3ad96e to your computer and use it in GitHub Desktop.
Save ibndawood/d3d440086017b140d3865068aa3ad96e to your computer and use it in GitHub Desktop.
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