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
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025