Hello,
I am using Generatepress with Beaver Themer, and the latter “overwrites” primary navigation settings done via theme customization.
I would like to include GeneratPress’s navigation search in the primary menu.
On the Beaver site they suggest the following for pulling in the search with Beaver Theme:
Add this to functions.php:
function bb_search_shortcode() {
ob_start();
FLTheme::nav_search();
return ob_get_clean();
}
add_shortcode( 'bb_search','bb_search_shortcode' );
Then add an HTML element and put in shortcode next to the primary menu.
Would this work with GeneratePress too?
I guess FLTheme::nav_search(); is the Beaver Theme function, what function do I have to call with GeneratePress?