How to display 2 columns on mobile in collection list

Topic summary

A user encountered an issue where their collection list displayed only 1 column on mobile despite setting it to 2 columns. After initial troubleshooting confirmed the problem, a solution was provided involving custom CSS code.

Solution provided:

  • Navigate to Actions > Edit code > Assets > list-collections.css
  • Add CSS code at the bottom targeting the grid layout for mobile viewports (max-width: 767px)
  • The code forces a 2-column grid template using grid-template-columns: repeat(2, minmax(0, 1fr)) !important

Outcome:
The issue was successfully resolved. The user confirmed the fix worked after implementing the CSS modification.

Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

Hello,

I set the number of columns on mobile to 2. But it displays 1 column on mobile view. How to solve this issue?

Actual:

Expectation:

1 Like

Hello @Angel_W
Our team is ready to help you.
Please share your website address and access password (if necessary) so that we can check and assist you.

Website: Ancosti Official Site
You can see it on the homepage.

Thank you.
This is the screenshot of the desktop view.

Hi @Angel_W ,

I checked and it shows 2 columns, can you check it again?

I modified. Please refresh the page.

Hi @Angel_W ,

Please go to Actions > Edit code > Assets > list-collections.css file and paste this at the bottom of the file:

@media only screen and (max-width: 767px) {
.collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
}
1 Like

Thank you very much!

Hi @Angel_W ,

If you have any questions, you can contact me directly.
Nice to meet you :blush: