Hi Guys
I am using the new Dune template, how do I change the code to allow 6 and 8 in a row please?
Below is the live code from the collection-list.liquid
Thanks in advance
Ben
{{ ‘section-collection-list.css’ | asset_url | stylesheet_tag }}
{{ ‘component-slider.css’ | asset_url | stylesheet_tag }}
{{ ‘component-card.css’ | asset_url | stylesheet_tag }}
{{ section.settings.title | escape }}
{%- if section.settings.show_view_all and section.settings.swipe_on_mobile -%}
{{ ‘sections.collection_list.view_all’ | t }}
{%- endif -%}
-
0 %} href="{{ block.settings.collection.url }}"{% endif %}
class="card animate-arrow link{% if block.settings.collection.featured_image != blank %} card--media{% else %}{% if section.settings.image_ratio != 'adapt' %} card--stretch{% endif %}{% endif %}{% unless section.settings.image_padding %} card--light-border{% endunless %}"
>
{%- if block.settings.collection.featured_image != blank -%} {% if section.settings.image_padding %}{% endif %}1 %}style="padding-bottom: {{ 1 | divided_by: block.settings.collection.featured_image.aspect_ratio | times: 100 }}%;"{% endif %}>
<img
srcset=“{%- if block.settings.collection.featured_image.width >= 165 -%}{{ block.settings.collection.featured_image | img_url: ‘165x’ }} 165w,{%- endif -%}
{%- if block.settings.collection.featured_image.width >= 330 -%}{{ block.settings.collection.featured_image | img_url: ‘330x’ }} 330w,{%- endif -%}
{%- if block.settings.collection.featured_image.width >= 535 -%}{{ block.settings.collection.featured_image | img_url: ‘535x’ }} 535w,{%- endif -%}
{%- if block.settings.collection.featured_image.width >= 750 -%}{{ block.settings.collection.featured_image | img_url: ‘750x’ }} 750w,{%- endif -%}
{%- if block.settings.collection.featured_image.width >= 1000 -%}{{ block.settings.collection.featured_image | img_url: ‘1000x’ }} 1000w,{%- endif -%}
{%- if block.settings.collection.featured_image.width >= 1500 -%}{{ block.settings.collection.featured_image | img_url: ‘1500x’ }} 1500w,{%- endif -%}
{%- if block.settings.collection.featured_image.width >= 3000 -%}{{ block.settings.collection.featured_image | img_url: ‘3000x’ }} 3000w,{%- endif -%}
{{ block.settings.collection.featured_image | img_url: ‘master’ }} {{ block.settings.collection.featured_image.width }}w”
src=“{{ block.settings.collection.featured_image | img_url: ‘1500x’ }}”
sizes="
(min-width: {{ settings.page_width }}px) {{ settings.page_width | minus: 100 | divided_by: columns }}px,
(min-width: 750px) {% if section.blocks.size > 1 %}calc((100vw - 10rem) / 2){% else %}calc(100vw - 10rem){% endif %},
calc(100vw - 3rem)"
alt=“{{ block.settings.collection.title | escape }}”
height=“{{ block.settings.collection.featured_image.height }}”
width=“{{ block.settings.collection.featured_image.width }}”
loading=“lazy”
class=“motion-reduce”{% unless section.settings.image_padding %}{% endunless %}{%- else -%}{%- if block.settings.collection.title != blank -%} {{- block.settings.collection.title | escape -}} {% render 'icon-arrow' %} {%- else -%} {{ 'onboarding.collection_title' | t }} {%- endif -%}
{%- endif -%}{%- if block.settings.collection.title != blank -%} {{- block.settings.collection.title | escape -}}{%- if block.settings.collection.description == blank -%} {% render 'icon-arrow' %}{% endif %} {%- else -%} {{ 'onboarding.collection_title' | t }} {%- endif -%}
{%- if block.settings.collection.description != blank -%}
{{- block.settings.collection.description | strip_html | truncatewords: 12 -}} {% render 'icon-arrow' %}
{%- endif -%}
{%- liquid
assign columns = section.blocks.size
if columns > 3
assign columns = 3
endif
-%}
{%- for block in section.blocks -%}
{%- if section.settings.swipe_on_mobile -%}
{%- if section.settings.show_view_all and section.blocks.size < collections.size -%}
{%- endif -%}{% schema %}
{
“name”: “t:sections.collection-list.name”,
“tag”: “section”,
“class”: “spaced-section collection-list-section”,
“max_blocks”: 15,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“default”: “Collections”,
“label”: “t:sections.collection-list.settings.title.label”
},
{
“type”: “select”,
“id”: “image_ratio”,
“options”: [
{
“value”: “adapt”,
“label”: “t:sections.collection-list.settings.image_ratio.options__1.label”
},
{
“value”: “portrait”,
“label”: “t:sections.collection-list.settings.image_ratio.options__2.label”
},
{
“value”: “square”,
“label”: “t:sections.collection-list.settings.image_ratio.options__3.label”
}
],
“default”: “square”,
“label”: “t:sections.collection-list.settings.image_ratio.label”,
“info”: “t:sections.collection-list.settings.image_ratio.info”
},
{
“type”: “select”,
“id”: “color_scheme”,
“options”: [
{
“value”: “accent-1”,
“label”: “t:sections.collection-list.settings.color_scheme.options__1.label”
},
{
“value”: “accent-2”,
“label”: “t:sections.collection-list.settings.color_scheme.options__2.label”
},
{
“value”: “background-1”,
“label”: “t:sections.collection-list.settings.color_scheme.options__3.label”
},
{
“value”: “background-2”,
“label”: “t:sections.collection-list.settings.color_scheme.options__4.label”
},
{
“value”: “inverse”,
“label”: “t:sections.collection-list.settings.color_scheme.options__5.label”
}
],
“default”: “background-1”,
“label”: “t:sections.collection-list.settings.color_scheme.label”
},
{
“type”: “checkbox”,
“id”: “swipe_on_mobile”,
“default”: false,
“label”: “t:sections.collection-list.settings.swipe_on_mobile.label”
},
{
“type”: “checkbox”,
“id”: “image_padding”,
“default”: false,
“label”: “t:sections.collection-list.settings.image_padding.label”
},
{
“type”: “checkbox”,
“id”: “show_view_all”,
“default”: false,
“label”: “t:sections.collection-list.settings.show_view_all.label”
}
],
“blocks”: [
{
“type”: “featured_collection”,
“name”: “t:sections.collection-list.blocks.featured_collection.name”,
“settings”: [
{
“type”: “collection”,
“id”: “collection”,
“label”: “t:sections.collection-list.blocks.featured_collection.settings.collection.label”
}
]
}
],
“presets”: [
{
“name”: “t:sections.collection-list.presets.name”,
“blocks”: [
{
“type”: “featured_collection”
},
{
“type”: “featured_collection”
},
{
“type”: “featured_collection”
}
]
}
]
}
{% endschema %}