How to remove or restyle the Sale badge on a Shopify store

The Sale badge appears when a product's compare-at price is higher than its price. Dawn and Horizon let you move and restyle the badge in the theme settings, but have no switch to turn it off. To remove it you clear the compare-at price, or edit the theme code on a duplicate.

Three flat product cards in dark violet, blue violet and purple, with a lime green pill-shaped badge lifted off the corner of the middle card.

The examples below use Dawn and Horizon, Shopify’s own free themes. Other themes name things differently, but the badge works the same way.

Where the badge comes from

You do not add the badge, and no setting creates it. Shopify treats a product as on sale when the Compare-at price field holds a value higher than the Price field. The theme reads those two numbers and prints the badge.

In Dawn and in Horizon the rule on a product card is the same. If the product is sold out, the card says Sold out. If it is available and its compare-at price is higher than its price, the card says Sale.

On the product page the two themes differ. Dawn prints the Sale badge next to the price. Horizon shows the old price crossed out next to the new one, with no badge.

What you can change without code

Open the theme editor, then Theme settings, then Badges.

  • Dawn: Position on cards (four corners), Corner radius, Sale badge color scheme, Sold out badge color scheme.
  • Horizon: Position on cards (three positions), Corner radius, Sale badge background, Sale badge text, the same two colors for the Sold out badge, Font and Case.

The word itself is theme text. In Online Store, then Themes, click the three dots next to your theme and choose Edit default theme content. Search for “Sale” and write what fits your brand, for example “Offer” or “Outlet”. If your store has several languages, each one has its own text.

Neither theme has a setting that hides the badge. That takes one of the two routes below.

A badge is also only one way to show an offer. Universe, our theme on the Shopify Theme Store, has an editorial promo block with large imagery, so an offer never makes the store look like an outlet.

Removing the badge in the code

First duplicate the theme: three dots next to the theme, then Duplicate. Shopify creates a copy named “Copy of” plus the theme name. Edit the copy, preview it, and publish it only when the cards and the product page look right.

In Dawn, open snippets/card-product.liquid and look for this line. It is there twice, once for cards with an image and once for cards without.

{%- elsif card_product.compare_at_price > card_product.price and card_product.available -%}

In both places, delete from that line down to the closing </span> that follows it, and leave the endif where it is. The Sold out badge keeps working.

On the Dawn product page, the price block calls the price snippet with show_badges: true in sections/main-product.liquid. Changing it to false removes both badges next to the price, Sale and Sold out. To hide only Sale there, the badge has the class price__badge-sale, which a CSS rule can target.

In Horizon the badge is printed in blocks/_product-card-gallery.liquid, with the same condition.

Two cautions. Shopify advises against editing the code of a Theme Store theme if you want to keep receiving its automatic updates. And theme files change between versions, so check the line in your own copy before deleting anything.

When removing the compare-at price is the real fix

Often the badge is right and the data is wrong.

  • The promotion is over. Clear the Compare-at price field on the product, or on many products at once in the bulk editor. Leave the field empty. A zero is not the same thing.
  • Only some variants should be on sale. The compare-at price is set per variant, so check each one. Dawn’s card looks at the product as a whole.
  • The whole catalog carries a compare-at price all year. When every card has the badge, it stops telling the customer anything. Here the question is the pricing, not the theme.

And the opposite case. If you want the old price crossed out but no badge, keep the compare-at price and take the code route above.

When it is the wrong thing to do

Removing the badge in the theme does not take the product off sale. The crossed-out price stays on the page. Shopify also notes that your theme does not control how sale prices appear on AI channels that find products through Shopify Catalog, so the discount still shows there.

If the price is not really discounted, clear the compare-at price. If it is, think twice before hiding the one element that says so on a small phone screen. Restyling it to match the brand, or moving it to another corner, is usually enough.

Keep reading

Tell us what you are working on

Book a 15-minute call, or write to us.

Book a call (opens in a new tab)