How To Display Only Products In Search Results In Dawn Theme? Many people have given me codes before but they either dont work, or they work but it messes up the layout of my shop. How can i filter search bar to products only with out effecting anything else on my website? Please help i have been trying to fix this issue for over 2 weeks.
Topic summary
A Shopify store owner using the Dawn theme needs to filter search results to display only products, excluding collections and other content. Previous code solutions either failed or disrupted the site layout.
Solution Provided:
Artzen Technologies shared a two-step code implementation:
- Step 1: Add
<input type="hidden" name="type" value="product">in the header.liquid file after locating ‘routes.search_url’ - Step 2: Apply the same code in the main-search.liquid file
Screenshots were included to show exact code placement.
Outcomes:
- Multiple users confirmed the solution worked successfully
- One user reported the fix no longer works with Dawn version 15 (December 2024), requesting an updated solution
The discussion remains partially open, as the original fix may need updating for newer Dawn theme versions.
Hello @Suoshie
Its Artzen Technologies! We will be happy to help you today.
Please follow the steps below: -
Step 1: Go to header.liquid file, find ‘routes.search_url’ and add code here:
Screenshot1 -
Step 2: Go to main-search.liquid file, find ‘routes.search_url’ and add code here:
Screenshot2-
Code:
This code will surely and 100% help you and solve your problem.
Let me know if need further assistance
Regards,
Artzen Technologies
This worked for us! Thank you so much!
Please mark it as accepted solution to let other’s know
Thanks - this also worked for us : )
Is there an update for dec 24’, it does not work with dawn 15, thanks

