Shopify themes, liquid, logos, and UX
How can I make shopify sale badge smaller in dawn theme?
Hi @NKmill
Try adding this to your "Theme settings" > "Custom css"
.badge.price__badge-sale {
transform: scale(0.8); // where 0.8 = 80%
}
I can not save it. I am sending you an image. When i am pressing save green box this red box appeaars down in the center. As you can see I have pasted the code.
Thank you for the answer. I pasted the code. But when I press the save green box it appears me a red box down in the center that says : Online store editor session can't be published.
@NKmill, this occurs when its a reserved shopify class name. The work around is to add the following code at the bottom of the Layouts/theme.liquid file, just above the </body>
<style>
.badge.price__badge-sale {
transform: scale(0.8); // where 0.8 = 80%
}
</style>
Thank you for the answer. I have saved the code but nothing happened. Whould you like to send you a message in order to give you access to help me with this?
In order to see result I have made the scale to 0.95 but still nothing.
@NKmillbeing more specific will likely do the trick.
<style>
.badge.price__badge-sale {
transform: scale(0.8) !important;
}
</style>
I have pasted the code to theme liquid just above body but still nothing changed on the sale badge in the online store.
Do you know how to place it in the top right. I want the top:0 and right: 0. Beacause on shopify in mobile view the badge is in the middle.
Use this on base.css, worked perfectly on Dawn 15.0.2.
Cám ơn Vân for this awesome trick!
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025