Sato71
November 19, 2023, 11:25pm
1
Hi! We are trying to change the color of the sale badge on the product page from light grey to black (with white text). Does anyone know how to do this? It shows up black on the collection/home pages, but not on the product page.
Our store is kennasatodesigns.com
Hi @Sato71
Please add this code at the bottom of your base.css file to change color of it
.product .product__info-wrapper .price .badge.price__badge-sale {
background-color: #000;
}
@Sato71
Please add the following code at the bottom of your css file.
.product__info-wrapper .price .badge.price__badge-sale {
background-color: #000;
}
Hello @Sato71 ,
I understand you are looking to change the background color of the sale badge on the product page.
Place take a look at the below mentioned solution for changing the background color -:
Go to Online store → Themes → Click on Three dots(Action) → Edit code
Next, Search for the theme.liquid file and open it.
Add the below mentioned code at the bottom of the file before tag -:
span.badge.price__badge-sale.color-accent-2 {
background-color: black;
}
Output => https://prnt.sc/9AXfrPVUtJz_
Save
I hope it helps.
Kindly let me know if you need any assistance
Thank you.
Dear Dmwwebartisan, I have copied the above code, now my sold-out badge is black. How to make the text color - White?
Thank you.