Snippets: 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;

} );

Snippet Type: PHP

Posted Under: Header

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)