Vantage Theme - Hide a specific collection list from collection page

Solved

Vantage Theme - Hide a specific collection list from collection page

CafelatUK
Tourist
8 0 3

Hi, I need some help on editing the codes of Vantage Theme. Tried to hide a specific collection list from the collection page by following the below instruction

https://docs.shopify.com/themes/customization/collections/change-collections-page

But not working. Here are the codes I found in 'collections-list -template.liquid'

{% if collections.size > 0 %}
<div class="product-loop">
{% for collection in collections %}
{% render 'collection-grid-item', collection: collection, col_per_row: col_per_row %}
{% endfor %}
</div>
{% else %}
<p>{{ 'collections.general.no_matches' | t }}</p>
{% endif %}

Any ideas? Thanks. 

Kristal 

Accepted Solution (1)
Zworthkey
Shopify Partner
5581 642 1577

This is an accepted solution.

hii, @CafelatUK 
paste this code on top of the stylesheet.css file.

.collection-index.desktop-3.tablet-2.mobile-half:nth-child(2) {
    display: none !important;
}

Thank You.

View solution in original post

Replies 4 (4)

Zworthkey
Shopify Partner
5581 642 1577

hii, @CafelatUK 
Kindly share your store URL and a screenshot of your problem so,
I can solve it perfectly and give you a proper solution.
Thank You.

CafelatUK
Tourist
8 0 3

Hi, thanks for the prompt reply. 

Link: https://www.cafelat.co.uk/collections

And I would like to remove one of the collections from this page. 

Screenshot 2021-09-23 at 12.29.11 PM.png

Kristal 

Zworthkey
Shopify Partner
5581 642 1577

This is an accepted solution.

hii, @CafelatUK 
paste this code on top of the stylesheet.css file.

.collection-index.desktop-3.tablet-2.mobile-half:nth-child(2) {
    display: none !important;
}

Thank You.

CafelatUK
Tourist
8 0 3

Thanks for your help 🙂 The code works.