All things Shopify and commerce
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
Solved! Go to the solution
This is an accepted solution.
In your base.css I found this.
This should be a curly bracket please change this one.
And try pasting the code again. If it’s still not working, paste it into the custom.css file from the theme editor.
.card__badge .badge {
background: <Your colour hear>;
}
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?
This is an accepted solution.
In your base.css I found this.
This should be a curly bracket please change this one.
And try pasting the code again. If it’s still not working, paste it into the custom.css file from the theme editor.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025