How can i remove the sale button but still keep the sold out button on product cards and collections?
Topic summary
A user wants to remove the “Sale” badge from their Shopify store while keeping the “Sold Out” badge visible on product cards and collection pages.
Solution provided:
- Add custom CSS code to hide the sale badge
- Initial attempts targeted
.badge.badge--bottom-left.color-scheme-4withdisplay: none !important; - After troubleshooting, the working solution was implemented through the theme editor’s Custom CSS section (not base.css)
Additional request:
The user also needed to remove the sale badge from individual product pages, which was resolved with:
.badge.price__badge-sale.color-scheme-4 {
display: none;
}
Status: Resolved. Both collection/card pages and product pages now hide the sale badge while preserving the sold-out indicator.
Hi @MLBildeler
Try this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.badge.badge--bottom-left.color-scheme-4 {
display: none;
}
-
And Save.
-
Result:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
That did not work ![]()
Replace on this one.
.card__inner .badge.badge--bottom-left.color-scheme-4 {
display: none !important;
}
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!
That didn’t work either ![]()
Please, add the code on the theme editor. Custom css.
It seems like you have a problem on the base.css.
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!
Add this code same on the Custom Css where you add it.
.badge.price__badge-sale.color-scheme-4 {
display: none;
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Thank you so much! ![]()



