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
- Online Store › Themes › … on your theme › Duplicate.
- Make the change on the copy, preview it, and publish only when it works.
The theme editor (to paste into Theme settings › Custom CSS; no code editing)
How to get this: The theme editor
- Online Store › Themes › Edit theme (on a copy of your theme if you want to test first).
- Add section or Add block › Custom Liquid, paste the code, then Save.
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.
.product-badges__badge.color-custom-badge-sale {
display: none !important;
}Change the colors instead
- Online Store › Themes › Customize on your Horizon theme (use … › Duplicate first if you want to try it on a copy).
- Click the gear icon (Theme settings) › Badges.
- 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.