Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #201135

    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?

    #201418

    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

    #201437

    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();
    	}
    		
    }
    
    #201472

    Sorry:

    
    //if ( !is_main_site() )
    
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Network wide menu & Mega menu’ is closed to new replies.