skip to Main Content

Hide Header on Mobile via PHP

add_filter( 'wpex_header_classes', function( $classes ) {

	// This will hide your entire header at the mobile menu breakpoint which is 959px by default
	// and can be changed under Customize > Header > Mobile Menu
	$classes[] = 'hide-at-mm-breakpoint';

	// Return classes
	return $classes;

} );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)
Back To Top