My shop has a search bar, i only want products to appear when searched and not pages. As you can see in this image different pages appear on the search and i dont want that. How do i make the search feature only apply to products?
Sometimes the themes have options to show only products on the search page.
Please check your theme on the Search section.
Otherwise, it needs to be custom coded.
i am using dawn theme and from what i can see i dont find an option to do that, i assume i need to code it but i dont know how to. Could you please provide me a code for it?
Please follow the steps below:
- Step 1: Go to header.liquid file, find ‘routes.search_url’ and add code here:
- Step 2: Go to main-search.liquid file, find ‘routes.search_url’ and add code here:
Code:
<input type="hidden" name="type" value="product">
tried it and didnt work ![]()


