Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi all,
I've noticed that our search function is only pulling from product descriptions and isn't recognising/finding tags (added in on the back end product page).
Example of the issue
We have one product that has the words "SFX" in the product description and one without. Both are tagged with "SFX" under the product organisation section. When we use the search on our website for the term "SFX" it will only pull the one with the words "SFX" in the product description rather than both.
Ideally we don't want to word stuff our product descriptions and would prefer to have the search pull from product tags and descriptions rather than one or the other.
We are using the theme: Editorial
Website link is here: https://cosmicsunshine.com.au/
Our question is how do we get the search to pull from the Product tags?
Solved! Go to the solution
This is an accepted solution.
Sorry, i ended up finding the solution after posting this.
After doing a deep dive into the code i found a section on Theme > Main-search.liquid where i could change the code slightly to make it pull from both the description and tag.
Cheers
If I search for "SFX" I get the coagulated-blood product returned in the list. Looks like the only place SFX shows is in the tag so appears to be working. Can you give an example of where it's not working?
This is an accepted solution.
Sorry, i ended up finding the solution after posting this.
After doing a deep dive into the code i found a section on Theme > Main-search.liquid where i could change the code slightly to make it pull from both the description and tag.
Cheers
Would you mind share a detailed explanation showing how younfixed this? Struggeling eith the same
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