Venture Theme Want to Make the collections on the home page smaller

Shaneel
New Member
1 0 0

Hi, I want to make the collection size for the collections smaller as it is really big on the venture theme by default so its more respectable sizes as i have 15 boxes now and i want it 5 on a row and 3 down so its more representable to the public. 

<div class="page-width" data-section-id="{{ section.id }}" data-section-type="collections-list"{% if section.settings.stretch_collection_image %} data-stretch-image{% endif %}>
{% assign blocks_count = section.blocks.size %}

{% case blocks_count %}
{% when 1 %}
{% assign grid_item_width = 'medium-up--one-half' %}
{% assign height = 450 %}
{% assign number_rows = 1 %}
{% when 2 %}
{% assign grid_item_width = 'medium-up--one-half' %}
{% assign height = 450 %}
{% assign number_rows = 1 %}
{% when 3 %}
{% assign grid_item_width = 'medium-up--one-third' %}
{% assign height = 330 %}
{% assign number_rows = 1 %}
{% when 4 %}
{% assign grid_item_width = 'medium-up--one-quarter' %}
{% assign height = 235 %}
{% assign number_rows = 1 %}
{% when 5 %}
{% assign grid_item_width = 'medium-up--one-third' %}
{% assign height = 330 %}
{% assign number_rows = 2 %}
{% when 6 %}
{% assign grid_item_width = 'medium-up--one-third' %}
{% assign height = 330 %}
{% assign number_rows = 2 %}
{% when 6 %}
{% assign grid_item_width = 'medium-up--one-third' %}
{% assign height = 330 %}
{% assign number_rows = 2 %}
{% when 7 %}
{% assign grid_item_width = 'medium-up--one-third' %}
{% assign height = 330 %}
{% assign number_rows = 2 %}
{% when 8 %}
{% assign grid_item_width = 'medium-up--one-third' %}
{% assign height = 330 %}
{% assign number_rows = 2 %}
{% when 9 %}
{% assign grid_item_width = 'medium-up--one-third' %}
{% assign height = 330 %}
{% assign number_rows = 2 %}
{% when 10 %}
{% assign grid_item_width = 'medium-up--one-third' %}
{% assign height = 330 %}
{% assign number_rows = 2 %}
{% when 12 %}
{% assign grid_item_width = 'medium-up--one-third' %}
{% assign height = 330 %}
{% assign number_rows = 2 %}
{% when 13 %}
{% assign grid_item_width = 'medium-up--one-third' %}
{% assign height = 330 %}
{% assign number_rows = 2 %}
{% when 14 %}
{% assign grid_item_width = 'medium-up--one-third' %}
{% assign height = 330 %}
{% assign number_rows = 2 %}
{% when 15 %}
{% assign grid_item_width = 'medium-up--one-third' %}
{% assign height = 330 %}
{% assign number_rows = 2 %}
{% endcase %}

<div class="grid grid--no-gutters" id="collection-list-grid" data-number-rows="{{ number_rows }}">
{% assign row_number = 1 %}

{% for block in section.blocks %}
{% if blocks_count == 5 and forloop.index > 5 %}
{% assign grid_item_width = 'medium-up--one-half' %}
{% assign height = 450 %}
{% endif %}
{% if blocks_count > 5 and forloop.index > 5 %}
{% assign row_number = 2 %}
{% endif %}

{% assign featured_collection = collections[block.settings.collection] %}
{% include 'collection-grid-item' with stretch_collection_image: section.settings.stretch_collection_image, height: height %}
{% endfor %}
</div>

{% if section.blocks.size == 0 %}
{% include 'no-blocks' %}
{% endif %}
</div>

 

{% schema %}
{
"name": {
"cs": "Seznam kolekcí",
"da": "Kollektionsliste",
"de": "Kategorieliste",
"en": "Collection list",
"es": "Lista de colecciones",
"fi": "Kokoelmaluettelo",
"fr": "Liste des collections",
"hi": "कलेक्शन सूची",
"it": "Elenco delle collezioni",
"ja": "コレクションリスト",
"ko": "컬렉션 목록",
"nb": "Samlingsliste",
"nl": "Collectielijst",
"pl": "Lista kolekcji",
"pt-BR": "Lista de coleções",
"pt-PT": "Lista de coleções",
"sv": "Kollektionslista",
"th": "รายการคอลเลกชัน",
"tr": "Koleksiyon listesi",
"vi": "Danh sách bộ sưu tập",
"zh-CN": "产品系列列表",
"zh-TW": "商品系列清單"
},
"class": "index-section",
"max_blocks": 15,
"settings": [
{
"type": "checkbox",
"id": "stretch_collection_image",
"label": {
"cs": "Použít rozvržení sekundárního obrázku",
"da": "Brug sekundært billedlayout",
"de": "Sekundäres Bildlayout verwenden",
"en": "Use secondary image layout",
"es": "Usar el diseño de la imagen secundaria",
"fi": "Käytä vaihtoehtoista kuvan asettelua",
"fr": "Utiliser la disposition d'image secondaire",
"hi": "सहायक इमेज लेआउट का उपयोग करें",
"it": "Usa layout immagine secondaria",
"ja": "サブ画像レイアウトを使用する",
"ko": "보조 이미지 레이아웃 사용",
"nb": "Bruk sekundært bildeoppsett",
"nl": "Gebruik secundaire afbeelding opmaak",
"pl": "Użyj dodatkowego układu obrazu",
"pt-BR": "Use o layout de imagem secundário",
"pt-PT": "Utilizar esquema de imagem secundário",
"sv": "Använd sekundär bildlayout",
"th": "ใช้เลย์เอาท์รูปภาพรอง",
"tr": "İkincil görsel düzeni kullan",
"vi": "Sử dụng bố cục hình ảnh phụ",
"zh-CN": "使用辅助图片布局",
"zh-TW": "使用次要圖片版面配置"
}
}
],
"blocks": [
{
"type": "collection",
"name": {
"cs": "Kolekce",
"da": "Kollektion",
"de": "Kategorie",
"en": "Collection",
"es": "Colección",
"fi": "Kokoelma",
"fr": "Collection",
"hi": "कलेक्शन",
"it": "Collezione",
"ja": "コレクション",
"ko": "컬렉션",
"nb": "Samling",
"nl": "Collectie",
"pl": "Kolekcja",
"pt-BR": "Coleção",
"pt-PT": "Coleção",
"sv": "Produktserie",
"th": "คอลเลกชัน",
"tr": "Koleksiyon",
"vi": "Bộ sưu tập",
"zh-CN": "收藏",
"zh-TW": "商品系列"
},
"settings": [
{
"id": "collection",
"type": "collection",
"label": {
"cs": "Kolekce",
"da": "Kollektion",
"de": "Kategorie",
"en": "Collection",
"es": "Colección",
"fi": "Kokoelma",
"fr": "Collection",
"hi": "कलेक्शन",
"it": "Collezione",
"ja": "コレクション",
"ko": "컬렉션",
"nb": "Samling",
"nl": "Collectie",
"pl": "Kolekcja",
"pt-BR": "Coleção",
"pt-PT": "Coleção",
"sv": "Produktserie",
"th": "คอลเลกชัน",
"tr": "Koleksiyon",
"vi": "Bộ sưu tập",
"zh-CN": "收藏",
"zh-TW": "商品系列"
}
}
]
}
],
"presets": [
{
"name": {
"cs": "Seznam kolekcí",
"da": "Kollektionsliste",
"de": "Kategorieliste",
"en": "Collection list",
"es": "Lista de colecciones",
"fi": "Kokoelmaluettelo",
"fr": "Liste des collections",
"hi": "कलेक्शन सूची",
"it": "Elenco delle collezioni",
"ja": "コレクションリスト",
"ko": "컬렉션 목록",
"nb": "Samlingsliste",
"nl": "Collectielijst",
"pl": "Lista kolekcji",
"pt-BR": "Lista de coleções",
"pt-PT": "Lista de coleções",
"sv": "Kollektionslista",
"th": "รายการคอลเลกชัน",
"tr": "Koleksiyon listesi",
"vi": "Danh sách bộ sưu tập",
"zh-CN": "产品系列列表",
"zh-TW": "商品系列清單"
},
"category": {
"cs": "Kolekce",
"da": "Kollektion",
"de": "Kategorie",
"en": "Collection",
"es": "Colección",
"fi": "Kokoelma",
"fr": "Collection",
"hi": "कलेक्शन",
"it": "Collezione",
"ja": "コレクション",
"ko": "컬렉션",
"nb": "Samling",
"nl": "Collectie",
"pl": "Kolekcja",
"pt-BR": "Coleção",
"pt-PT": "Coleção",
"sv": "Produktserie",
"th": "คอลเลกชัน",
"tr": "Koleksiyon",
"vi": "Bộ sưu tập",
"zh-CN": "收藏",
"zh-TW": "商品系列"
},
"blocks": [
{
"type": "collection"
},
{
"type": "collection"
},
{
"type": "collection"
}
]
}
]
}
{% endschema %}

0 Likes