I want to hide ‘0-5’ and ‘4M’ collections from Collections/all page. This is my current code, any help would be appreciated.
{% assign using_linklist = false %}
{% assign pagination = 12 %}
{% assign linklist = ‘all-collections’ %}
{% if linklists[linklist] and linklists[linklist].links.size > 0 %}
{% assign using_linklist = true %}
{% endif %}
{% render ‘breadcrumbs’ %}
{% style %}
#shopify-section-{{ section.id }} .collection-list__content {
grid-template-columns: repeat({{ section.settings.thumbnail_columns_desktop }}, minmax(0, 1fr));
}
@media only screen and (max-width: 860px) {
#shopify-section-{{ section.id }} .collection-list__content {
grid-template-columns: repeat({{ section.settings.thumbnail_columns_mobile }}, minmax(0, 1fr));
}
}
{% endstyle %}
{{ 'general.breadcrumbs.collections' | t }}
{% paginate collections by pagination %}-
{% if using_linklist %}
{% for link in linklists[linklist].links %}
{% assign link_handle = link.handle %}
{% assign collection = collections[link_handle] %}
{% render 'collection-list-item', collection: collection %}
{% endfor %}
{% else %}
{% for collection in collections %}
{% render ‘collection-list-item’, collection: collection %}
{% endfor %}
{% endif %}
{% schema %}
{
“name”: “t:sections.collections.name”,
“class”: “listcollections–section section–canonical”,
“settings”: [
{
“type”: “range”,
“id”: “thumbnail_columns_desktop”,
“label”: “t:sections.collections.thumbnail_columns_desktop.label”,
“min”: 3,
“max”: 6,
“step”: 1,
“default”: 5
},
{
“type”: “range”,
“id”: “thumbnail_columns_mobile”,
“label”: “t:sections.collections.thumbnail_columns_mobile.label”,
“min”: 1,
“max”: 3,
“step”: 1,
“default”: 2
},
{
“type”: “select”,
“id”: “image-crop”,
“label”: “t:sections.collections.image-crop.label”,
“info”: “t:sections.collections.image-crop.info”,
“options”: [
{
“value”: “original”,
“label”: “t:sections.collections.image-crop.option_1”
},
{
“value”: “circle”,
“label”: “t:sections.collections.image-crop.option_2”
},
{
“value”: “round”,
“label”: “t:sections.collections.image-crop.option_3”
}
]
}
]
}
{% endschema %}