Home>Support>Bug with Vantage and WpForo

Bug with Vantage and WpForo

By Her3sy, 8 years ago. Last reply by Alex S, 8 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hello,

I’m french, so sorry for my bad english.

I use the latest version of wordpress with the theme Vantage and the WpForo plugin (my site is www.oraxen.fr), but there is an error on my forum page (www.oraxen.fr/forum/) :

It shows me the mobile menu and the computer menu, with this :

I have not found how “patch” this error on WpForo forum, so I come here.

Thank you,
Thomas.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 8 months ago Alex S
    Hi, I Work Here

    Hi Her3sy,

    Please install Code Snippets. Please navigate to WP AdminSnippetsAdd New and label the snippet as wpforo mobile fix and then add the following code:

    
    function vantage_wpforo_menu_fix( $nav_menu, $args ){
    	$args = (object) $args;
    
    	if( $args->theme_location == 'wpforo-menu'){
    		remove_filter('wp_nav_menu', 'siteorigin_mobilenav_nav_filter', 10, 2);
    		remove_filter('wp_page_menu', 'siteorigin_mobilenav_nav_filter', 10, 2);
    	}
    
    	return $nav_menu;
    }
    add_filter( 'wp_nav_menu', 'vantage_wpforo_menu_fix', 1, 2 );
    add_filter( 'wp_page_menu', 'vantage_wpforo_menu_fix', 1, 2 );
    

    Set the scope to only run on site front-end and then click Save Changes and Activate

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More