If the default shopify search is not working, you can follow the steps below to fix it. This method involves creating a shopify custom search engine using expertrec and replacing the default shopify search with expertrec.
- Create your shopify custom search engine from here.
- Login to your shopify admin panel.
- Click-> Online store->Themes-> Edit code
- Go to https://cse.expertrec.com/csedashboard/home/code to copy paste your custom search code.
- Choose theme.liquid.
- Add The following code just below the head section.
123456789101112<ci-search></ci-search><script>(function() {var id = 'YOUR_SHOPIFY_SEARCH_API_KEY';var ci_search = document.createElement('script');ci_search.type = 'text/javascript';ci_search.async = true;ci_search.src = 'https://cse.expertrec.com/api/js/ci_common.js?id=' + id;var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ci_search, s);})();</script> - This will add expertrec’s search bar to your shopify website.