I am building a site which uses a Global Template Row to replace the BB header, and as such I can’t use “Customize” to edit things like the menu layout.
http://cbstage.cbgclients.com
I would like to add a search icon to the end of my custom “main menu” but I don’t know how… is there an easy way to do it or some code I can add to functions.php?
Basically I’d like the “magnifying glass” icon and search functionality that I would otherwise be able to configure in the Customize panels.
Hey Jose,
Not really sure what’s the best way to place it there. But you can call it via a shortcode. Just add the function below to your functions.php and call the search bar using the shortcode bb_search
.
function bb_search_shortcode() {
ob_start();
FLTheme::nav_search();
return ob_get_clean();
}
add_shortcode( 'bb_search','bb_search_shortcode' );
You could probably add an HTML module to the right of the Menu module and place the shortcode there. You’ll probably need to add styling to it as well.
Ben