Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Beaver Builder - Add Search to Mobile
<?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