Snippets: Disable the Total Theme Menu & Mobile Menu

// Disable the Total Theme menu and mobile menu functions completely
function meprefix_remove_total_actions() {
 
	// Remove mobile menu icons
	remove_action( 'wpex_hook_header_inner', 'wpex_mobile_menu_icons' );
	
	// Remove mobile menu alternative
	remove_action( 'wp_footer', 'wpex_mobile_menu_alt' );
	
	// Remove header menu
	remove_action( 'wpex_hook_header_inner', 'wpex_header_menu' );
	remove_action( 'wpex_hook_header_top', 'wpex_header_menu' );
	remove_action( 'wpex_hook_header_bottom', 'wpex_header_menu' );
	
}
add_action( 'init', 'meprefix_remove_total_actions' );

// Set mobile menu style to disabled
function myprefix_alter_mobile_menu_style() {
	return 'disabled';
}
add_filter( 'wpex_mobile_menu_style', 'myprefix_alter_mobile_menu_style' );

Snippet Type: PHP

Posted Under: Menu

All PHP snippets should be added via a child theme's functions.php file.