I want to increase columns in collection grid
It’s 5 by default i want 6 columns
Collection-template.liquid file
{%- assign per_row = section.settings.per_row -%}
{%- assign paginate_by = per_row | times: section.settings.rows_per_page -%}
{% paginate collection.products by paginate_by %}
{%- if collection.description != blank -%}
{%- endif -%}
{%- if section.settings.subcollection_style == ‘above’ -%}
{%- include ‘subcollections’, per_row: section.settings.subcollections_per_row -%}
{%- endif -%}
{%- if section.settings.enable_collection_count -%}
{{ 'collections.general.items_with_count' | t: count: collection.products_count }}
{%- endif -%}{% case per_row %}
{% when 2 %}
{%- assign grid_item_width = ‘medium-up–one-half’ -%}
{% when 3 %}
{%- assign grid_item_width = ‘small–one-half medium-up–one-third’ -%}
{% when 4 %}
{%- assign grid_item_width = ‘small–one-half medium-up–one-quarter’ -%}
{% when 5 %}
{%- assign grid_item_width = ‘small–one-half medium-up–one-fifth’ -%}
{% endcase %}
{%- for product in collection.products -%}
{%- include ‘product-grid-item’ -%}
{%- else -%}
{{ 'collections.general.no_matches' | t }}
{%- if section.settings.subcollection_style == ‘below’ -%}
{%- include ‘subcollections’, per_row: section.settings.subcollections_per_row -%}
{%- endif -%}
{%- if paginate.pages > 1 -%}
{%- include ‘pagination’ -%}
{%- endif -%}
{%- if settings.quick_shop_enable -%}
{%- for product in collection.products -%}
{%- if product.available -%}
{%- include ‘quick-shop-modal’ -%}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{% endpaginate %}
{% schema %}
{
“name”: “Collection pages”,
“settings”: [
{
“type”: “header”,
“content”: “Subcollections”
},
{
“type”: “paragraph”,
“content”: “Links to collections from your menu will appear here. Learn more”
},
{
“type”: “select”,
“id”: “subcollection_style”,
“label”: “Subcollection style”,
“default”: “above”,
“options”: [
{
“value”: “above”,
“label”: “Above products”
},
{
“value”: “below”,
“label”: “Below products”
},
{
“value”: “none”,
“label”: “None”
}
]
},
{
“type”: “range”,
“id”: “subcollections_per_row”,
“label”: “Subcollections per row”,
“default”: 6,
“min”: 2,
“max”: 7,
“step”: 1
},
{
“type”: “header”,
“content”: “Products”
},
{
“type”: “checkbox”,
“id”: “enable_collection_count”,
“label”: “Enable collection count”,
“default”: true
},
{
“type”: “range”,
“id”: “per_row”,
“label”: “Products per row”,
“default”: 6,
“min”: 2,
“max”: 7,
“step”: 1
},
{
“type”: “range”,
“id”: “rows_per_page”,
“label”: “Rows per page”,
“default”: 7,
“min”: 3,
“max”: 20,
“step”: 1
},
{
“type”: “checkbox”,
“id”: “mobile_flush_grid”,
“label”: “Flush grid on mobile”,
“default”: false
}
]
}
{% endschema %}



