Shopify Horizon guide

How to hide the Sale or Sold out badge 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 badge CSS

Hide Sale badges (CSS)

For Sold out badges use .color-custom-badge-sold-out instead, and for both use .product-badges__badge on its own.

Theme settings › Custom CSS
.product-badges__badge.color-custom-badge-sale {
  display: none !important;
}

Change the colors instead

  1. Online Store › Themes › Customize on your Horizon theme (use … › Duplicate first if you want to try it on a copy).
  2. Click the gear icon (Theme settings) › Badges.
  3. Under Colors, set Sale badge background and Sale badge text, or the Sold out badge colors, and Save.

Questions

Does it hide the badge on the product page too?

Horizon only shows these badges on product cards (collections, search, home page grids). The product page shows the sale through the price block.

More guides