Instructions
-
Go to ‘Online Store’ → Themes
-
From your Active Theme → Click on the 3 dots (…) → Edit Code
-
In the Sections Folder locate the file called ‘main-list-collections.liquid’ or something similar
-
Find the below for loop
{%- for collection in collections -%}
- {% render 'card-collection',
card_collection: collection,
media_aspect_ratio: section.settings.image_ratio,
columns: 3
%}
{%- endfor -%}
- Surround everything inside the for loop with this:
{%- for collection in collections -%}
{% if collection.metafields.custom.hide_collection_from_storefront.value == false %}
- {% render 'card-collection',
card_collection: collection,
media_aspect_ratio: section.settings.image_ratio,
columns: 3
%}
{% endif %}
{%- endfor -%}
Hope this helps