Skip to content

Snippet: Overlay/Transparent 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( 'totaltheme/header/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 (100% Free) or WPCode (sponsored)
Back To Top