DEBUT THEME - How do I hide specific Collections from my "Collections-All"?

I am using the Debut theme and am looking for a way to hide specific collections from the menu item that populates all collections onto one page. Can someone please help me? Everything I’ve found on the forums doesn’t work, or the specific text string I’m meant to edit doesn’t exist in my specific list-collections-template.liquid file.

Essentially, on my home page I want to have 3 products that I offer laid out as three squares across the top of the section, exactly how “Collection List” option does - but I cannot find a way to have it just be the image as a clickable link to the product, so I’ve had to resort to doing it as custom collections, each only having that one product… an extra click I’d love to avoid for customers, but I can’t figure out another way to make it work… open to suggestions!

Site is www.imakeflair.com - Under “Store” I’d like to hide the last 3 collections listed.

@BootlegCraig you will need to edit your theme code. Look for a file called main-list-collections.liquid. I’m familiar with the dawn theme so yours may be different.

Then look for the code “{%- for collection in collections -%}”.

Once you find above code, add the below code and replace “your-collection-handle” with the handle of your collection. You can find the handle by browsing to the collection and take a look in your browser URL bar. Ex. https://www.imakeflair.com/collections/simple-sayings < this is your handle.

{%- if collection.handle == 'your-collection-handle' -%}
{%- continue -%}
{%- endif -%}

Hi there. Thanks for the feedback. If I want to do multiple collections do I just copy/paste that same code over and over or is there a way to add a comma separated value?

@BootlegCraig try:

{%- if collection.handle == ‘your-collection-handle’ or collection.handle == ‘other-handle’ -%}

{%- continue -%}

{%- endif -%}

This is a great resource for liquid code info:

https://shopify.github.io/liquid/basics/operators/

1 Like