Removed the sale badge and sold out badge in Shopify Dawn theme

A while ago i’ve removed the sale & sold out badge from my Shopify Dawn theme from the collection page.

I want to have it back on my store and only the sale badge removed, but want to keep the sold out badge.

However I cannot find the code anymore where I actually removed it. I guessed it was the base.css, but can’t find any code regarding the tags.

Anyone here that can help me implement any code back in my theme (Dawn) to have the sold out badge back, but keep sale badge removed? Thanks!

1 Like

hello @Goosie

please share your store URL.

Hello There,

Please share your store URL and password.
So that I will check and let you know the exact solution here.

https://jewelr-8121.myshopify.com/

1 Like

https://jewelr-8121.myshopify.com/ and no password

Hi @Goosie

Please add this code to your theme.liquid file, after in Online Store > Themes > Edit code


Best Regards,

Dan from Ryviu

Thanks alot! works great

1 Like

Happy I could help. Have a good day ahead!

hello @Goosie

Go to Online store → Theme → Edit code → Find base.css file → Paste below code at the bottom of the base.css file

.card:has(.price--sold-out) .card__badge {
    display: inline-flex;
}