Tagged: mega menu
Hello!
I made cross site menu. I use plugin “Network wide menu”.
But option “Mega menu” works only on basic site. How to fix it?
Hey vasilybodnarchuk!
We’ll need a bit more information on what exactly you mean and the setup you have installed. There may not be a fix available but if we can see the site and issue live we might be able to find one.
Best regards,
Devin
Hello Devin!
I do this (it works):
add_filter('wp_nav_menu', 'wp_nav_menu_global');
function wp_nav_menu_global()
{
if ( !is_main_site() )
{
remove_filter( 'wp_nav_menu','wp_nav_menu_global');
switch_to_blog(1);
$args = array(
'theme_location' => $avia_theme_location,
'menu_id' => $avia_menu_class,
'container_class' => $avia_menu_class,
'fallback_cb' => 'avia_fallback_menu',
'walker' => new avia_responsive_mega_menu()
);
wp_nav_menu($args);
restore_current_blog();
}
}
Sorry:
//if ( !is_main_site() )