-
-
Save davekuhar/e3b84654f8ffdb5747032f406ad9b741 to your computer and use it in GitHub Desktop.
Beaver Builder - Add Search to Mobile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add Search Box to Mobile | |
* Adds a search box to mobile, below the header. | |
* To move it above the header, change fl_after_header to fl_before_header | |
*/ | |
function bbMenuPolish_addMobileSearch(){ | |
if ( wp_is_mobile() ) { | |
get_search_form(); | |
} | |
} | |
add_action( 'fl_after_header', 'bbMenuPolish_addMobileSearch' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment