Dawn Theme - Change Sale Colour Badge on Collection and Product Pages

Solved

Dawn Theme - Change Sale Colour Badge on Collection and Product Pages

scent26candleco
Excursionist
17 0 8

My store URL is https://scent26candleco.co.uk/

How do I change the colour of the sale badge on the collection and product page so that it the background colour is OB82C9 and not white? Thanks

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10202 2422 3067

This is an accepted solution.

In your base.css I found this. 

Made4uoRibe_0-1735595034615.png

This should be a curly bracket please change this one.

Made4uoRibe_1-1735595061975.png

 

And try pasting the code again. If it’s still not working, paste it into the custom.css file from the theme editor.

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 6 (6)

mudasir07
Shopify Partner
6 0 1
.card__badge .badge {
    background: <Your colour hear>;
}

add this in theme.css file 

Made4uo-Ribe
Shopify Partner
10202 2422 3067

Hi @scent26candleco 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.product-grid .badge, .badge.price__badge-sale {
    background: #0B82C9;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1735578539943.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
scent26candleco
Excursionist
17 0 8

Thanks - how do I get the word Sale to be white instead of black? I have not followed the previous step yet, as would prefer to add 1 piece of code versus 2!

Made4uo-Ribe
Shopify Partner
10202 2422 3067

Just add the color. 

 

.product-grid .badge, .badge.price__badge-sale {
    background: #0B82C9;
color: white;
}

 

And Save. 

 

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
scent26candleco
Excursionist
17 0 8

I added the code to base.css in Assets but nothing has changed - it still shows as black text and a white background. Any ideas where I am going wrong?

Made4uo-Ribe
Shopify Partner
10202 2422 3067

This is an accepted solution.

In your base.css I found this. 

Made4uoRibe_0-1735595034615.png

This should be a curly bracket please change this one.

Made4uoRibe_1-1735595061975.png

 

And try pasting the code again. If it’s still not working, paste it into the custom.css file from the theme editor.

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.