Craft Theme Search (Restrict to Products Only)

1 0 0

Hi Guys,


Going crazy over something that I am sure is easily fixable! I am using the craft theme from Shopify and am trying to get the search (on header and in a separate page) to only display products and not pages and blogs. Tried using solution for another theme which suggested modifying the route.search_URL thing but didn't work for me. 


Appreciate all your help!!!

Reply 1 (1)
Shopify Partner
314 9 22



Modifying the route.search_URL alone may not achieve the desired result.

At header.liquid find the code that generates the search form and Modify the form's action

then at Templates> search.liquid" file needs to change some codes

Click here to Contact and Get Shopify Store Help
E-mail -
We are Shopify Store Small Tasks and Customization Experts