Skip to content

Use Header Style Two, Three or Four for Header Overlay

Important

This is no longer needed. The theme will use any selected header style now with the Overlay/transparent header. Simply choose the header you wish to use for your site via the Customizer.

add_filter( 'wpex_header_style', function( $style ) {
	if ( wpex_has_overlay_header() ) {
		$style = 'three';
	}
	return $style;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin.
We recommend Code Snippets (100% Free) or WPCode (sponsored)
Related Snippets
Back To Top