skip to Main Content

Disable the Menu Completely

// 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' );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)
Back To Top