Top Bar With UberMenu
-
Hello,
If i have declare UberMenu like This :
function storefront_primary_navigation() {
?><?php if( function_exists( ‘ubermenu’ ) ): ?>
<?php ubermenu( ‘main’ , array( ‘theme_location’ => ‘primary’ ) ); ?>
<?php else: ?>
<nav id=”site-navigation” class=”main-navigation” role=”navigation”>
<button class=”menu-toggle”><?php apply_filters( ‘storefront_menu_toggle_text’, $content = _e( ‘Primary Menu’, ‘storefront’ ) ); ?></button>
<?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>
</nav><!– #site-navigation –>
<?php endif; ?><?php
}How i have to declare Your Top Bar
I declared my menu like this :
function register_my_menus() {
register_nav_menus(
array(
‘Top-Bar’ => __( ‘Top Bar’ ),
‘Top-Bar-1’ => __( ‘Top Bar 1’ ),
‘Top-Bar-2’ => __( ‘Top Bar 2’ )
)
);
}
add_action( ‘init’, ‘register_my_menus’ );Regards
The topic ‘Top Bar With UberMenu’ is closed to new replies.