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.
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.
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_name=Product
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.
Hi @JalenR
Is it possible to use two tags for this?