skip to Main Content

Snippet: Disable the Mobile Menu

Important: This snippet is no longer required because you you can disable the mobile menu via the Customizer now!

If you are using a 3rd party plugin for your mobile menu, such as the SuperFly menu you can easily disable the Total mobile menu and toggle using the following code. This way the main menu will still hide on small screens but then you can use your custom menu for mobile.

add_filter( 'totaltheme/mobile/menu/style', 'disabled' );
add_filter( 'wpex_mobile_menu_toggle_style', '__return_null' );
add_filter( 'totaltheme/header/menu/is_custom', '__return_true' );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend WPCode)
Back To Top