Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
Currently, when I search for something in the search bar, it will show the products AND the blogs. Is there a way to only show the products? I am using the Spark theme btw.
I tried to uncheck this in the Theme settings but it didn't work.
Solved! Go to the solution
This is an accepted solution.
Hello @j_adv21
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: <input type="hidden" name="type" value="product">
This code will help you and solve your problem.
Let me know if need further assistance
Regards,
Artzen Technologies
This is an accepted solution.
Hello @j_adv21
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: <input type="hidden" name="type" value="product">
This code will help you and solve your problem.
Let me know if need further assistance
Regards,
Artzen Technologies
thank you, it worked!
Hello @j_adv21
Its Artzen Technologies! We will be happy to help you today.
Glad that it worked and you got the desired result. In future if you require any help then you can contact.
Let me know if need further assistance
Regards,
Artzen Technologies
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025