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)

1Pick your fixes

  • Sets how much of the product page width the photos take on computers. Phones keep the full-width photo.

    Check this setting first

    Product information section › Equal columns gives a 50/50 split with no code. This snippet works with Equal columns off.

  • Shows exactly this many products per row on collection and search pages on computers (990 px and wider). Phones and the shopper’s zoom-out toggle are unchanged.

    Check this setting first

    Collection section › Card size (Small, Medium, Large, Extra large) changes the count without code, but the count then depends on the screen width.

  • Sets the product page title size on phones only (749 px and narrower). Computers keep the size from your theme settings.

    Check this setting first

    The Text block that holds the title has a Type preset and Size setting, but they change phones and computers together.

  • Removes the badge from product cards on collection, search and home page grids. Prices still show the sale price and compare-at price.

    Check this setting first

    Theme settings › Badges only sets the position on cards, corner radius, colors and font; there’s no switch to turn them off.

  • Removes the caret or plus icon on the right of every Accordion row. The rows still open and close when clicked; icons you picked for the left side stay.

  • Keeps every top-level menu link at full color while the shopper hovers another one. Horizon fades the other links by default.

2Copy it into Theme settings › Custom CSS

  1. Online Store › Themes › Customize (on a duplicate of your theme if you want to test first).
  2. Click the gear icon (Theme settings) › Custom CSS, paste at the end of anything already there, and click Save.
  3. Open a product or collection page in the preview to check each fix.

429 of 1,500 characters

Theme settings › Custom CSS
/* Product photo width (desktop) */
@media screen and (min-width: 750px) {
  .product-information__grid.product-information--media-left:not(.product-information__grid--half) {
    grid-template-columns: minmax(0, 50fr) minmax(0, 50fr) !important;
  }
  .product-information__grid.product-information--media-right:not(.product-information__grid--half) {
    grid-template-columns: minmax(0, 50fr) minmax(0, 50fr) !important;
  }
}

3Changes Horizon makes without code

These are settings or blocks in the theme editor. Use them instead of CSS: they keep working after theme updates.

Hiding sold-out or unavailable sizes and colors in the variant picker has its own tool: Hide Sold Out.

How it works

  1. Tick the fixes you want and choose a size or count for each.
  2. Copy the code. The counter shows it against Shopify’s 1,500-character limit.
  3. Paste it into Theme settings › Custom CSS in the theme editor and Save.
  4. Check the pages in the preview, then publish.

Guides

Questions

Where do I paste the CSS?

Online Store › Themes › Customize › the gear icon (Theme settings) › Custom CSS. It applies to every page except checkout. Shopify allows 1,500 characters there.

Why does every rule end in !important?

Horizon prints much of its own styling inside the page, after the Custom CSS. Without !important, an equally specific Horizon rule wins and your change does nothing.

Will it break when Horizon updates?

Custom CSS carries over to the new version. If an update renames a class, that one rule stops working; the rest of the store is unaffected. Check the pages it touches after each update.

Does it work in Dawn or other themes?

No. Each theme names its parts differently. These snippets use Horizon’s class names, which Shopify’s newer themes built on Horizon mostly share.

Is anything sent to my store?

No. The page writes text in your browser; you paste it into the theme editor yourself.

Based on Shopify’s guide to adding custom CSS and Horizon’s source code on GitHub.

Related: Hide Sold Out · Liquid Snippet Studio · Leftover App Code Finder · All theme and storefront tools