Want to Exclude Certain Collections from “You Might Also Like” Recommendations for Modular Theme

Topic summary

Goal: exclude entire “wholesale” and “custom items” collections from the Modular theme’s “You Might Also Like” (related products) section.

  • Initial suggestion: use Shopify’s free Search & Discovery app to manage related product recommendations. A screenshot shows where to configure recommendations. Changes propagate in ~30–60 seconds.

  • Limitation raised: the app workflow appears to require per‑product curation, which is too manual. The requester asks for a collection‑level exclusion applied store‑wide.

  • Code-based approach offered: edit theme Liquid to filter recommendations by checking a product’s collections and excluding matches by collection title. A sample snippet iterates product.collections and tests for title keywords (example uses “Best,” “Most,” “Latest”). This implies adapting it to the specific collection names (“wholesale,” “custom items”) and placing it in the recommendations template/section.

  • Caveat: the snippet is illustrative and does not show full removal logic or exact placement; it will need customization to actually skip rendering excluded products.

Status: no confirmed built-in, global collection-level toggle presented. Discussion remains open; screenshots included but not essential to follow the thread.

Summarized with AI on January 10. AI used: gpt-5.

Here is your solution,


**Related Content:**  This product is part of
    {% for product_collection in product.collections limit:10  %}
//contains call title of collection which you want to show.
{% if product_collection.title  contains 'Best' or product_collection.title contains "Most" or product_collection.title contains "Latest" %} 
  title has a match and has been removed 
{% endif %}
{% endfor %}