Shopify Horizon guide

How to change the number of products per row in Horizon

What you’ll need

  • A duplicate of your theme to test on

    How to get this: A duplicate of your theme to test on
    1. Online Store › Themes › … on your theme › Duplicate.
    2. Make the change on the copy, preview it, and publish only when it works.

    Step-by-step guide (opens in a new tab)

  • The theme editor (to paste into Theme settings › Custom CSS; no code editing)

    How to get this: The theme editor
    1. Online Store › Themes › Edit theme (on a copy of your theme if you want to test first).
    2. Add section or Add block › Custom Liquid, paste the code, then Save.

    Step-by-step guide (opens in a new tab)

Get the products-per-row CSS

With the Card size setting

  1. Online Store › Themes › Customize on your Horizon theme (use … › Duplicate first if you want to try it on a copy).
  2. In the page menu, pick Collections › Default collection.
  3. Click the Collection section and change Card size. Smaller cards mean more per row.
  4. Mobile card size has two choices: Small (two per row on phones) or Large (one per row).
  5. Do the same on the Search template if you want search results to match.

An exact number (CSS)

This rule fixes the grid at four columns on screens 990 px and wider, on every product grid that uses the Grid layout. The shopper’s zoom-out button keeps working.

Theme settings › Custom CSS (4 per row)
@media screen and (min-width: 990px) {
  .product-grid--grid:not([product-grid-view='zoom-out']) {
    --product-grid-columns-desktop: repeat(4, minmax(0, 1fr)) !important;
  }
}

Questions

Why does my collection show 5 per row on a big monitor?

Card size is a minimum width, not a count. A wider screen fits more cards of that width.

More guides