Skip to content
Site Under Re-Design: We're updating & improving the docs! Some layouts or content may look broken or inconsistent during this process. If you’re unable to find an article, please use the search bar while we restructure and optimize the sidebar navigation.

Add A Search Form To The Top Bar (Searchform Shortcode)

There is actually a simple search form shortcode included in Total which you can use to place a simple search form anywhere on the site (there is also a search form Visual Composer module with many options). If you want to add a search to your Top Bar you can do so via the shortcode if you aren’t displaying VC content in this area.

The Shortcode

Simply use the shortcode to display the default site search form:

[searchform]

This will pull the code from the searchform.php file so there aren’t any parameters available for the shortcode.

Screenshot

Below is an example of the shortcode in action:

topbar-searchform

Related Articles
Back To Top