Snippets: 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 a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)