Last active
July 22, 2024 19:28
-
-
Save TwisterMc/0571813b25a81da1f30d79a9824d0121 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