Get rid of sale badge border on dawn theme

Topic summary

A Shopify store owner using the Dawn theme wanted to remove the SALE badge while keeping the SOLD OUT badge on product listings. An image showed a small white badge appearing on sale items.

Initial Solutions Provided:

  • One approach involved editing the card-product.liquid file in the Snippets folder, replacing code to display only the sold-out badge
  • Alternative CSS solutions were offered targeting specific badge classes in base.css

Follow-up Issue:
The initial fix worked on collection pages but the SALE badge remained visible on individual product pages.

Final Resolution:
Adding the following CSS code to base.css successfully removed all SALE badges across both collection and product pages:

.badge.color-accent-2 { display: none !important; }
.badge.color-accent-1 { display: none !important; }

The issue was fully resolved, with the original poster and another user confirming the solution worked perfectly. The discussion is marked as solved.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

Hello, I have tried many options of getting rid of the sale badge on my products and when I try fixing it I only manage to get rid of the sale badge and the sold out badge. I only want to remove SALE badge and keep SOLD OUT badge. As you can see I still have that small white badge next to products that are “on sale”

1 Like

Hi @Liam_15_1 , can you share your store url?

Of course!

https://brand-supply.store/?_ab=0&_fd=0&_sc=1

1 Like

Hi @Liam_15_1

You need to get your hands dirty to implement this. Please follow the instructions below

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

Go to Snippet folder and open the card-product.liquid file.

Find the card__badge

Replace the code highlighted in the image with the code below.

{%- if card_product.available == false -%}
            
              {{- 'products.product.sold_out' | t -}}
            
          {%- endif -%}

Make sure to SAVE

Completed code should look like this

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

@Liam_15_1 , Add this code to base.css :

span#NoMediaStandardBadge-template--20094800691530__product-grid-8534532260170 {
    display: none !important;
}

@Liam_15_1 , go to base.css and add the following code to remove all the sale badge:

.badge.color-accent-2 {
    display: none !important;
}

Thank you so much! :slightly_smiling_face:

Your always welcome (",)

Need help again I’m afraid… just saw that it worked on my featured collection but not when you click in on one of my products, then the sale badge is still there somehow :disappointed_face:

@Liam_15_1 , try to add this code to base.css :

.badge.color-accent-1 {
    display: none !important;
}
1 Like

Thank you so much! Worked perfectly, now the badge is gone on the product page too :slightly_smiling_face:

1 Like

I have been trying many other codes that did not work. Your thoroughly detailed instructions and code worked perfectly for my store- Many thanks for posting this solution!!

Hi @justin30102

Welcome! Would you mind hitting thumbs-up? Thanks!