This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Bug with Vantage and WpForo

9 years ago · Last reply by Alex S 9 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 9 years, 3 months ago

    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.

Have a different question or issue?

Start New Thread