Shopify themes, liquid, logos, and UX
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!
Solved! Go to the solution
This is an accepted solution.
Hi @Goosie
Please add this code to your theme.liquid file, after <head> in Online Store > Themes > Edit code
<style>
.card:has(.price--sold-out) .card__content .card__badge {
display: inline-flex;
}
</style>
Best Regards,
Dan from Ryviu
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
hello @Goosie
please share your store URL.
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;
}
Hello There,
Please share your store URL and password.
So that I will check and let you know the exact solution here.
This is an accepted solution.
Hi @Goosie
Please add this code to your theme.liquid file, after <head> in Online Store > Themes > Edit code
<style>
.card:has(.price--sold-out) .card__content .card__badge {
display: inline-flex;
}
</style>
Best Regards,
Dan from Ryviu
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Thanks alot! works great
Happy I could help. Have a good day ahead!
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025