skip to Main Content

Conditionally Disable Fixed Header/Menu

// Conditionally Disable Fixed Header/Menu
add_filter( 'wpex_has_fixed_header', function( $bool ) {

	// Disable on front page
	if ( is_front_page() ) {
		$bool = false;
	}

	// Return bool
	return $bool;

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