BeTheme (muffingroup)

Knowledgebase Docs » UberMenu 3
USEFUL? 11
UberMenu 3

BeTheme may not always use the required theme_location parameter when calling wp_nav_menu(), which prevents UberMenu from being able to control the menu automatically.

Manual Integration

In order to ensure that UberMenu can control the menu on every page, we’ll override the theme’s pluggable function to manually integrate the menu. Just paste this code in your child theme’s functions.php (muffingroup provides a child theme that you can install and activate)

if( function_exists( 'ubermenu' ) ){
	function mfn_wp_nav_menu(){
		ubermenu( 'main' , array( 'theme_location' => 'main-menu' ) );
	}
}

or, if you are using the theme’s Split Header layout, then use this code instead of the above:

if( function_exists( 'ubermenu' ) ){
	function mfn_wp_split_menu(){
		ubermenu( 'main' , array( 'theme_location' => 'main-menu' ) );
	}
}

If you do want to change menus on specific pages, check out this guide: Page-specific menus

Custom CSS

Add this custom CSS in your CSS Tweaks to hide the theme’s responsive toggle and make sure the header is layered on top of the slider

#Header_wrapper,
#Header #Top_bar{
    position: relative;
    z-index: 50;
    top:auto;
}
.responsive-menu-toggle{
	display:none !important;
}