How to Exclude a Specific Collection from the Artists' List Page on Shopify

Topic summary

Goal: On the artists’ page, list only artist-specific collections and exclude the general collection “Todos los productos en stock.”

Proposed coding approach: Edit the Liquid template that renders the collection list (suggested: main-collection-list.liquid). Within the loop that iterates collections ({% for collection in collections %}), add a condition to skip the target by handle (the handle is the collection’s unique identifier used in URLs):

  • Define excludedCollectionHandle
  • Wrap existing item markup with {% unless collection.handle == excludedCollectionHandle %} … {% endunless %}

Progress/blockers: The store owner applied a change but saw no effect and shared a snippet from a section (section-collection-list). A responder noted the edit appears in the wrong file and the code was used incorrectly; the posted snippet doesn’t show the collections loop, suggesting the relevant template/section wasn’t modified.

Alternative app suggestion: “LockOn – Content Restrictions” to control visibility/access by user tags and rules. This focuses on access restriction rather than adjusting which collections appear in this specific list.

Status: Unresolved. Next step implied by replies is to identify the correct template/section that powers the artists’ list page and apply the handle-exclusion condition there.

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

Seems you are in a wrong file.
Also you use the code in wrong way.