I’m new to shopify and I cannot figure out how to get my collections list page to follow the same color scheme 2 as my shop all products list. I’m also struggling to figure out how to change my page to follow the same scheme. Any advice?
Hi @terraco ,
Please go to Actions > Edit code > sections > main-list-collections.liquid file and add code here:
Code: color-scheme-2 gradient
That partially worked!
Now I have one random stripe of color between the collections list and heading.
Do you also know how to change the color scheme on a “page” as well?
Hi @terraco ,
Please send me the code of main-list-collections.liquid file, I will check and guide it
{{ ‘component-card.css’ | asset_url | stylesheet_tag }}
{{ ‘section-collection-list.css’ | asset_url | stylesheet_tag }}
{{ section.settings.title }}
{%- liquid case section.settings.sort when 'products_high', 'products_low' assign collections = collections | sort: 'all_products_count' when 'date', 'date_reversed' assign collections = collections | sort: 'published_at' endcaseif section.settings.sort == ‘products_high’ or section.settings.sort == ‘date_reversed’ or section.settings.sort == ‘alphabetical_reversed’
assign collections = collections | reverse
endif
assign moduloResult = 28 | modulo: section.settings.columns_desktop
assign paginate_by = 30
if moduloResult == 0
assign paginate_by = 28
endif
-%}
{%- paginate collections by paginate_by -%}
-
{%- for collection in collections -%}
- {% render 'card-collection', card_collection: collection, media_aspect_ratio: section.settings.image_ratio, columns: 3 %} {%- endfor -%}
Hi @terraco ,
Please change all code:
{{ 'component-card.css' | asset_url | stylesheet_tag }}
{{ 'section-collection-list.css' | asset_url | stylesheet_tag }}
#
{{ section.settings.title }}
{%- liquid
case section.settings.sort
when 'products_high', 'products_low'
assign collections = collections | sort: 'all_products_count'
when 'date', 'date_reversed'
assign collections = collections | sort: 'published_at'
endcase
if section.settings.sort == 'products_high' or section.settings.sort == 'date_reversed' or section.settings.sort == 'alphabetical_reversed'
assign collections = collections | reverse
endif
assign moduloResult = 28 | modulo: section.settings.columns_desktop
assign paginate_by = 30
if moduloResult == 0
assign paginate_by = 28
endif
-%}
{%- paginate collections by paginate_by -%}
{%- for collection in collections -%}
- {% render 'card-collection',
card_collection: collection,
media_aspect_ratio: section.settings.image_ratio,
columns: 3
%}
{%- endfor -%}
{% render 'pagination', paginate: paginate %}
{%- endpaginate -%}
{% schema %}
{
"name": "t:sections.main-list-collections.name",
"class": "section",
"settings": [
{
"type": "color_scheme",
"id": "color_scheme",
"label": "t:sections.all.colors.label",
"info": "t:sections.all.colors.has_cards_info",
"default": "scheme-2"
},
{
"type": "inline_richtext",
"id": "title",
"label": "t:sections.main-list-collections.settings.title.label",
"default": "Collections"
},
{
"type": "select",
"id": "sort",
"options": [
{
"value": "alphabetical",
"label": "t:sections.main-list-collections.settings.sort.options__1.label"
},
{
"value": "alphabetical_reversed",
"label": "t:sections.main-list-collections.settings.sort.options__2.label"
},
{
"value": "date_reversed",
"label": "t:sections.main-list-collections.settings.sort.options__3.label"
},
{
"value": "date",
"label": "t:sections.main-list-collections.settings.sort.options__4.label"
},
{
"value": "products_high",
"label": "t:sections.main-list-collections.settings.sort.options__5.label"
},
{
"value": "products_low",
"label": "t:sections.main-list-collections.settings.sort.options__6.label"
}
],
"default": "alphabetical",
"label": "t:sections.main-list-collections.settings.sort.label"
},
{
"type": "select",
"id": "image_ratio",
"options": [
{
"value": "adapt",
"label": "t:sections.main-list-collections.settings.image_ratio.options__1.label"
},
{
"value": "portrait",
"label": "t:sections.main-list-collections.settings.image_ratio.options__2.label"
},
{
"value": "square",
"label": "t:sections.main-list-collections.settings.image_ratio.options__3.label"
}
],
"default": "adapt",
"label": "t:sections.main-list-collections.settings.image_ratio.label",
"info": "t:sections.main-list-collections.settings.image_ratio.info"
},
{
"type": "range",
"id": "columns_desktop",
"min": 1,
"max": 6,
"step": 1,
"default": 3,
"label": "t:sections.main-list-collections.settings.columns_desktop.label"
},
{
"type": "header",
"content": "t:sections.main-list-collections.settings.header_mobile.content"
},
{
"type": "select",
"id": "columns_mobile",
"options": [
{
"value": "1",
"label": "t:sections.main-list-collections.settings.columns_mobile.options__1.label"
},
{
"value": "2",
"label": "t:sections.main-list-collections.settings.columns_mobile.options__2.label"
}
],
"default": "2",
"label": "t:sections.main-list-collections.settings.columns_mobile.label"
}
]
}
{% endschema %}
I added option and you can choose its color here:
This helped, made the strip thinner, but there is still a thin line of color that is not supposed to be there ![]()
Hi @terraco ,
Please send me the store link and screenshot description about it, I will help you check it
password: rtafli
So “sets” page on the menu should look like “shop all” page, but you’ll see a strip of the terra cotta color between the title and the list.
It’s fixed. Never mind
Hi @terraco ,
If you have any questions, you can contact me directly.
Nice to meet you ![]()

