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
A Shopify store owner wants to customize the sale badge on their Dawn theme collection and product pages, specifically changing the background color to #0B82C9 and making the text white instead of black.
Solution Provided:
.product-grid .badge, .badge.price__badge-sale {
background: #0B82C9;
color: white;
}
Troubleshooting:
When the initial code didn’t work, a syntax error was identified - the user had accidentally used a parenthesis instead of a curly bracket in their base.css file. The helper suggested:
The discussion remains open as the user is working through the implementation.
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
.card__badge .badge {
background:
add this in theme.css file
Try this one.
.product-grid .badge, .badge.price__badge-sale {
background: #0B82C9;
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
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!
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!
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?