Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hey everyone,
I'm looking to only show products in my store search results.
How would I hide pages,articles,etc in the results. How do I block that?
I've managed to find out what to do I'm just not sure where to add or edit the code to make it work: https://help.shopify.com/en/themes/development/search/storefront-search
Thanks in advance!
Solved! Go to the solution
This is an accepted solution.
Yeah I figured it out.
Hi,
You aren't far off, re: the docs you'll see this line:
You'll need to find your search form, it should be in one of the search related liquid files. Adding the line above and/or if you already have it, modifying it so that value only contains product.
The other issue you might have is if your theme has live/ajax search, then you'll also need to modify that, though that will be more specific to the theme you are using.
This is an accepted solution.
Yeah I figured it out.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024