skip to Main Content

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( 'wpex_mobile_menu_style', 'disabled' );
add_filter( 'wpex_mobile_menu_toggle_style', '__return_null' );

// New in Total 5.1.1 - you can use this filter to completely remove the Total mobile menu and customizer settings.
add_filter( 'wpex_is_header_menu_custom', '__return_true' );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)
Back To Top