Shopify themes, liquid, logos, and UX
I want to hide certain products from being searched based on a product tag.
I don't want to use an app since it is just a few items that need to be hidden.
Solved! Go to the solution
This is an accepted solution.
Hi Uffda,
You can use the following code to hide a product from the product recommendations, place it in product-recommendations.liquid as you see in the screenshot. Note: This will leave a blank spot(s) where the recommendation would otherwise show up.
{% unless recommendation.tags contains "_hidden" %}
{% endunless %}
As far as removing an item from search, the only way I have found was to use the seo.hidden metafield. Edit the link with your store name and it will bring you to the bulk editor to edit that metafield.
https://my-store.myshopify.com/admin/bulk?edit=metafields.seo.hidden%3Aboolean&limit=250&resource_na...
This is an accepted solution.
Hi Uffda,
You can use the following code to hide a product from the product recommendations, place it in product-recommendations.liquid as you see in the screenshot. Note: This will leave a blank spot(s) where the recommendation would otherwise show up.
{% unless recommendation.tags contains "_hidden" %}
{% endunless %}
As far as removing an item from search, the only way I have found was to use the seo.hidden metafield. Edit the link with your store name and it will bring you to the bulk editor to edit that metafield.
https://my-store.myshopify.com/admin/bulk?edit=metafields.seo.hidden%3Aboolean&limit=250&resource_na...
Thanks this totally worked!
Is there a way to hide the search bar entirely on the Dawn 2.0 theme? My site is very simple, I want to remove the search bar feature.
I've developed an app that does the job - https://apps.shopify.com/hide-from-search. It hides products from both Shopify search results and external search engines.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024