Increased the columns in Collection List but want to decrease for one section on mobile - Dawn Theme

Topic summary

Goal: adjust Shopify Dawn’s Collection List so the second instance shows 4 columns on mobile (while others remain at 6); centering was a backup option.

Approach: use CSS media queries to change the grid layout on small screens. Key idea is setting grid-template-columns to four columns within the specific section only.

Implementation options:

  • Add Custom CSS in the second Collection List section with a media query (≈ max-width 750–767px) and set .collection-list to auto auto auto auto, scoped to that section.
  • Insert CSS in theme.liquid (before ) targeting the section’s unique ID (e.g., #shopify-section-template–… or ul#Slider-template–…) to limit changes to the second instance. An optional font-size tweak for card headings was also suggested.

Outcome: the solution worked and was confirmed by the requester. Images illustrate the before/after and are central to understanding the visual result.

Status: resolved; no remaining questions or disagreements.

Summarized with AI on December 17. AI used: gpt-5.

I’m happy with the collection list on my homepage showing 6 columns for the first and third instance, but the second instance I’d like to show only 4 columns. Is this possible? If not, could I center the section?

www.lushpupco.com

Happy with this section (working on the font size)

Would like this section to be larger or centered

1 Like

Hi @lushpupco ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

Please add this code in Custom CSS of that section to make it show 4 in the second section

@media (max-width: 750px) {
    .collection-list {
        grid-template-columns: auto auto auto auto !important;
    }
}

Hello @lushpupco

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

@media screen and (max-width: 767px){ #shopify-section-template--22975037571349__collection_list_GUWbtw h3.card__heading a { font-size: 9px !important; } .slider-mobile-gutter .collection-list { grid-template-columns: auto auto auto auto !important; } }

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

Thank you, this is perfect!

1 Like

@lushpupco , No problem. Glad to help you :heart_eyes:

Hello @lushpupco
Go to online store ---------> themes --------------> actions ------> edit code------->assets-----> section-collection-list.css
add this code at the end of the file.

ul#Slider-template--22975037571359__collection_list_j6Wkr8 {
grid-template-columns: auto auto auto auto !important;
}

result

If this was helpful, hit the like button and accept the solution.
Thanks