skip to Main Content

Overlay Header Search Menu Style

This snippet will allow you to change the header menu search style used when displaying the site with an overlay/transparent header.

add_filter( 'wpex_menu_search_style', function( $style ) {
	if ( wpex_has_overlay_header() ) {
		$style = 'drop_down'; // options: drop_down, overlay, header_replace
	}
	return $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