The Shopify search bar in the Header is one of the most important features. The search bar allows people to search for products within your shopify store and it helps in better product discovery and sales.
Without a search bar, any visitor who could have been a potential customer will be calculated in the bounce rate users. Well, if there is a proper search bar for your listed products to be searched, instead of simple horizontal or vertical categories, a header search bar looks promising.
Let’s look at the different methods to create your Shopify search bar.
Using Shopify smart search bar shopify app
You can add a Shopify search bar app using expertrec’s Shopify search app in a few clicks. You can install the app from here.
Add shopify search bar to header
Search bar using custom search code – Expertrec
- Create your Shopify search bar from here.
- Log in to your Shopify admin panel.
- Click-> Online store->Themes-> Edit code
- Go to https://cse.expertrec.com/csedashboard/home/code to copy-paste your search bar code.
- Choose theme.liquid.
- Add the following code just below the “Head” section.
- Add the following code just below the “Body” section. This will be rendered as the Search Box.
- This will add a search bar to your Shopify website.
Search bar using google custom search
Google custom search is a free tool with which you can add a search bar to your shopify store. A major drawback of this method is that it contains ads which could mean losing out hard earned site visitors to competitors.
- Go to https://cse.google.com
- Enter your website URL, give a name to your custom search engine.
- Click on create.
- Click on get code and copy the code.
- Now login to your Shopify admin panel.
- Go to Online store-> Themes-> Current theme->Actions-> Edit code
- Use the search files feature, search for theme.liquid .
- Add the google custom search code to the theme.liquid field in the <head> section.
- This will add a google custom search to your Shopify store.