I’d like to change the background colour of my custom product badges in Stiletto.
They’re currently a white background, and I can change the colour of the text and border, but I’d like coloured backgrounds with white text. TIA
I’d like to change the background colour of my custom product badges in Stiletto.
They’re currently a white background, and I can change the colour of the text and border, but I’d like coloured backgrounds with white text. TIA
Hi @JordanLily ,
Would you mind to share your URL website? with password if its protected. Just to clarify is the “NEW” badges right?
Like this? https://lmpw7hcputqh354j-25474924626.shopifypreview.com
So, Stiletto has badges preset for SALE and SOLD OUT, then custom badges (attached in the screenshot). Sold out lets you change the background in the theme settings, but all of the other badges only let you change the font colour! Thanks
Okay, you only need to change the background right? Try this one.
.product__block--product-header-inner .product-badge {
background: red;
}
Result:
i hope it help.
Thank you! That works for the product listings!
A couple of follow-ups:
Can it be edited further so that custom badge 1 has a blue background, and custom badge 2 has a yellow background etc. to differentiate?
Is there additional code I’d need to change the background colour on image thumbnails in collections too? (photo attached!)
Thanks so much!
You can custom another badge with different content name and different location in the store. If you cant change them in the Customize theme. Then you need to customize them in the Edit theme.
For the collection.
section#shopify-section-template--14541837566034__4641ca20-a1ff-454f-9c41-79b82eeffe46 {
background: pink;
}
Result: