← All articles

How to show, change or fix the sale badge on Shopify

Short answer

Shopify themes add a Sale badge automatically when a product's Compare-at price is higher than its Price. You change the badge's position, shape and color in the theme editor under Theme settings > Badges, and its wording under Edit default theme content. A Sold out badge replaces it when the product is unavailable, and showing percent off takes a small theme code edit or a theme that supports it.

Key takeaways
  • Shopify themes show a Sale badge when a product's Compare-at price is higher than its Price; there is no separate badge switch to turn on.
  • Badge position, shape and color live in the theme editor under Theme settings > Badges, and the badge text is edited in Edit default theme content.
  • In Dawn and Horizon, a product that is unavailable shows a Sold out badge instead of a Sale badge, even if its compare-at price is set.
  • On collection pages, a product whose variants have inconsistent compare-at prices may show no Sale badge even though some variants are on sale.
  • Discount codes and automatic discounts don't trigger the Sale badge, because they don't change the product's price on the storefront.

The Shopify sale badge is the small "Sale" label your theme puts on a product image when that product is on sale. You don't switch it on anywhere: Shopify's free themes add it automatically when a product's Compare-at price is higher than its Price. You control how it looks under Theme settings > Badges in the theme editor, and what it says under Edit default theme content.

Most badge problems come down to three things: the compare-at price, a sold-out product, or a discount that never touches the product's price. This guide covers how the badge works, how to restyle and reword it, how to show percent off, and how to fix it when it won't appear.

When does Shopify show a sale badge?

A theme shows the Sale badge when the product's compare-at price is higher than its price, and the product is still available. That's the whole rule in Shopify's own Dawn and Horizon themes.

Shopify's theme settings docs put it plainly: Sale and Sold out badges are added to product images automatically "when you reduce the price or when the inventory count reaches 0." Reducing the price here means a sale price set with compare-at, as described in Shopify's help article on sale prices:

  1. From your Shopify admin, go to Products and open the product.
  2. In the Price section, click Compare at and enter the original price in Compare-at price.
  3. Enter the lower sale price in Price.
  4. Click Save.

If you sell t-shirts at $30 and drop last season's designs to $10, you'd set Price to $10 and Compare-at price to $30. The theme then shows both prices and the Sale badge. For the details of the field itself, including why $0.00 isn't the same as empty, see the guide to the Shopify compare-at price.

Reading the theme code shows two more details that matter:

  • Sold out wins. Dawn and Horizon check availability first. If the product is unavailable, the card shows Sold out, not Sale, even with a compare-at price set.
  • Cards use the product, product pages use the variant. On collection pages, the card compares the product's lowest compare-at price with its lowest price. On the product page, Dawn compares the selected variant's prices, so the badge can come and go as the shopper picks a size.

How do you change the sale badge color, shape and position?

Open the theme editor, click the Theme settings icon and choose Badges. Shopify's docs say you can adjust the position, shape and color of Sale and Sold out badges separately there.

  1. From your Shopify admin, go to Online Store.
  2. Click Edit theme next to the theme you want to change.
  3. Click the Theme settings icon, then Badges.
  4. Adjust the settings and watch the preview.
  5. Click Save.

The settings differ by theme. Here's what Shopify's two current free themes offer, taken from their theme settings files:

Setting Dawn (16.x) Horizon (4.x)
Position on cards Bottom left, Bottom right, Top left, Top right Bottom left, Top left, Top right
Corner radius 0 to 40 px 0 to 100 px
Sale badge color Sale badge color scheme (pick a scheme) Sale badge background and Sale badge text
Sold out badge color Sold out badge color scheme Sold out badge background and Sold out badge text
Badge font and case Not in this panel Font (body, subheading, heading, accent) and text case

Two tips. Position only applies to product cards, so check a collection page rather than a product page. And if your sale badge uses a color scheme in Dawn, editing that scheme under Colors also changes every section using it, so give the badge its own scheme if you want a distinct holiday red.

Page and Blog badges, which appear in search results, follow the same position and shape settings, but Shopify's docs note you can't change their color.

How do you change the sale badge text?

Change it in the theme content editor; no code needed. The word "Sale" is a translation string, so editing it changes every Sale badge in that theme at once.

  1. From your Shopify admin, go to Online Store.
  2. Click the ... button beside the theme and select Edit default theme content.
  3. Use the Filter items search bar to search for "Sale" (in Dawn it's under the Products category).
  4. Change the text, for example to "Holiday deal" or "Black Friday".
  5. Click Save.

The same editor changes "Sold out" to something like "Back soon". It edits your default language only; other languages are updated through Translate & Adapt, a CSV, or a compatible translation app.

Because this text is theme-wide, "Black Friday" stays on every sale product until you change it back. If you only want seasonal wording during a sale, do it on a duplicate theme that you publish for the sale (more on that below).

Can the sale badge show the percentage off?

Not in Dawn or Horizon as they ship; both print a fixed word. Some third-party themes include a setting to show percent or amount saved, so check your theme's documentation or settings first. Otherwise it takes a small Liquid edit.

Before you touch code, duplicate the theme (Online Store, then the ... menu, then Duplicate) and edit the copy. In Dawn, the product-page badge lives in snippets/price.liquid, where the variables price and compare_at_price are already set. You can replace the line that prints the Sale text with a calculation like this:

{%- if compare_at_price > price -%}
  {%- assign savings = compare_at_price | minus: price | times: 100.0 | divided_by: compare_at_price | round -%}
  {{ savings }}% off
{%- endif -%}

Prices in Liquid are numbers in the currency's subunit (cents for USD), so the ratio works without converting. Using 100.0 keeps the division from rounding to zero.

Watch for these when you do it:

Situation What happens What to do
Variants on sale by different amounts Product cards use the lowest compare-at price and the lowest price, which can come from different variants Show "Up to X% off" on cards, or keep the word Sale there
Shopper switches variants The product-page badge should update with the price Test every variant after the edit
Theme update Code edits aren't carried into a new theme version Note what you changed so you can redo it
Percent rounds oddly $39.99 to $29.99 is 25.006%, shown as 25% Fine for most stores; be consistent

If editing code isn't for you, a Shopify Partner can make the change.

Why is my Shopify sale badge not showing?

In most cases Compare-at price isn't higher than Price, or the product is sold out and the theme shows Sold out instead. Work through this table in order:

Symptom Likely cause Fix
No badge anywhere Compare-at price is empty, equal to or lower than Price Make Compare-at price the higher number
"Sold out" instead of "Sale" The product is unavailable, and Sold out takes priority Restock, or set the variant to keep selling when out of stock
Badge on the product page, not on collection pages Variants have inconsistent compare-at prices Give every variant a compare-at price above its price, or clear the field on variants not on sale
Discount running, no badge Discount codes and automatic discounts don't change the product's price on the storefront Use compare-at prices for products that should show a badge
Badge on some sections, not others The theme or a section doesn't render badges there Check the section's settings and your theme's docs
Badge shows after the sale ended Compare-at price is still filled in Clear Compare-at price and restore Price
Right in your main market, wrong abroad A fixed market price overrides admin prices and compare-at prices Set the market's compare-at price in its catalog or by CSV

The discount row catches a lot of stores during Black Friday. Shopify's help docs say savings from discounts show with a crossed-out price at checkout, but showing them on product and collection pages takes a third-party discount app or a custom build. So if you want badges on the storefront, the sale has to be a compare-at price.

The last row is the opposite problem. A badge that outlives its sale is worse than a missing one, because shoppers see a "sale" price that is now your regular price. When the sale ends, clear compare-at prices in bulk; how to bulk edit prices in Shopify covers doing that safely with the bulk editor or a CSV.

How do you add custom badges like "New" or "Holiday gift"?

Shopify's free themes only have Sale and Sold out badges built in. For other labels, use a metafield connected to a theme block, a theme that reads tags or metafields for badges, or a code edit.

Method Where it shows Effort
Metafield connected to a Text block Product page, wherever you place the block No code, set per product
Theme with built-in custom badges Wherever the theme supports them, often cards Read the theme docs; usually a tag or metafield
Liquid edit that reads a tag or metafield Cards and product pages Code in a duplicate theme

The no-code route uses dynamic sources. Create a product metafield definition (for example "Badge text"), fill it on the products that need it, then in the theme editor add a Text block to the product page and connect it to that metafield with the dynamic source icon. Shopify's docs on displaying metafields describe this flow, and note that what's available depends on your theme.

How to plan badges for a sale

Badges follow your prices and your theme, so plan them with the sale. A sale that starts at midnight needs compare-at prices set at midnight, and a seasonal badge color or wording usually means a separate sale theme.

A simple plan:

  1. Duplicate your live theme and name it for the sale.
  2. In the copy, set the Black Friday badge colors and wording, plus any banner or homepage changes.
  3. Prepare the compare-at prices you'll apply, and note which products were already marked down.
  4. At the start: publish the sale theme and apply the sale prices.
  5. At the end: publish your regular theme and clear the compare-at prices.

Shopify can schedule discounts with active dates, but a compare-at price has no built-in schedule, so steps 4 and 5 are manual unless you use an app. The timing side is covered in how to schedule a sale on Shopify.

How Theme Scheduler helps

The badge part of a sale is mostly timing: sale prices and sale styling have to go live together and come off together. Theme Scheduler publishes the theme you pick at a set time in your store's timezone, so a duplicate theme with your holiday badge colors and wording can go live at the start and your regular theme can come back at the end (two schedules, $6.95/month on Professional with a 14-day free trial).

On the Plus plan ($12.99/month), the same sale can change the products too: a percentage or amount off with the original price shown as the compare-at price, which is what makes the Sale badge appear, on whole products or only chosen variants. It can also add sale tags and set the metafields your theme uses for badges. Everything switches back on its own when the sale ends, and you choose whether edits made during the sale are kept. Theme Scheduler is made by NewClick, not Shopify. It doesn't create discount codes, countdown timers or banners.

Frequently asked questions

How do I add a sale badge on Shopify? Set a sale price. Enter the original price in the product's Compare-at price field and the lower sale price in Price, then save. Shopify's free themes add the Sale badge automatically when Compare-at price is higher than Price. There is no separate setting that turns the badge on.

Why is my Shopify sale badge not showing? Usually because Compare-at price isn't higher than Price, or because the product is sold out and the theme shows a Sold out badge instead. Other causes: variants with inconsistent compare-at prices (which hides the badge on collection pages), a discount code or automatic discount instead of a compare-at price, or a theme that doesn't display badges in that section.

How do I change the sale badge text on Shopify? From your Shopify admin, go to Online Store, click the three-dot menu beside your theme and select Edit default theme content. Search for Sale, change the text (for example to Holiday deal), and click Save. The change applies to every Sale badge in that theme.

Can the Shopify sale badge show the percentage off? Not in Dawn or Horizon without a code edit. Those themes print the word Sale. Some paid themes have a setting for percent or amount saved, so check your theme's documentation first. Otherwise, a small Liquid change in a duplicate of your theme can calculate the percentage from the compare-at price and price.

How do I change the sale badge color on Shopify? In the theme editor, open Theme settings and then Badges. In Dawn, pick a Sale badge color scheme. In Horizon, set the Sale badge background and Sale badge text colors. Save, then check a product card on a collection page.

Sources

  1. Shopify Help Center: Theme settings (Visual elements customization, Badges)
  2. Shopify Help Center: Setting sale prices for products
  3. Shopify Help Center: Changing the wording in themes
  4. Shopify Dev: Liquid product object
  5. Shopify Help Center: Displaying metafields on your online store
  6. Shopify Dawn theme source on GitHub

Set up your sale once

Theme Scheduler publishes your sale theme on time and, on Plus, puts products on sale and swaps menus, then switches everything back when the sale ends.

Get Theme Scheduler