Hi!
https://www.nourichemedspa.com/collections/eye-concerns
Need help
Would like 4 Columns for collection lists on website
and
2 columns for mobile..
Can anyone please help?
Goal: set collection list in Shopify’s Dawn theme to 4 columns on desktop and 2 columns on mobile.
Solution provided: add CSS media queries in Assets > section-collection-list.css.
Implementation steps:
Notes: the code snippet is central; it uses CSS media queries (rules that apply at specific screen widths) to control grid item widths.
Outcome: another participant confirmed the solution successfully produced a two-column layout on mobile in Dawn, indicating it works as intended.
Status: resolved; no outstanding questions or disagreements.
Hi!
https://www.nourichemedspa.com/collections/eye-concerns
Need help
Would like 4 Columns for collection lists on website
and
2 columns for mobile..
Can anyone please help?
yes, please add this code
@media screen and (min-width: 750px) {
.collection-list.grid--3-col-tablet .grid__item {
max-width: calc(25% - var(--grid-desktop-horizontal-spacing) * 2 / 2);
width: calc(25% - var(--grid-desktop-horizontal-spacing) * 2 / 2);
}
}
@media screen and (max-width: 749px) {
.collection-list .collection-list__item {
width: calc(50% - 3rem);
}
}
I am not the OP but I have been searching for an hour to find a solution to get two columns in Dawn theme, and this is the only one that worked! Thank you so much. And thanks to OP for asking the question!