A user wants to customize their Shopify Dawn theme’s sale badge to match Zara’s style, displaying both the discount percentage and discounted price directly within the badge.
Initial Solution:
BSSCommerce-B2B provided code modifications to price.liquid file
Added custom markup to display discount percentage and price in the badge
Ongoing Issues:
Badge visibility: Initially only appeared on product pages, not homepage - resolved with additional code changes
Color inconsistency: Sale badge color (pink) not applying consistently across pages
Mobile responsiveness: Badge elements breaking into multiple rows on mobile devices, with text appearing too small when font size reduced
Current Status:
The discussion remains unresolved. A CSS solution was provided to reduce badge size on mobile using media queries, but this also affected the product page display (which the user wants to keep larger). The latest code adjustment attempt has not resolved the sizing conflict between mobile and desktop views. The user continues to seek a solution that maintains proper badge sizing across different screen sizes while matching Zara’s layout.
Summarized with AI on November 6.
AI used: claude-sonnet-4-5-20250929.
I would like to change my sale badge into brand Zara’s sale badge. In Zara’s sale badge it shows product discount % and product price right inside the badge only I want that kinda badge which shows product discount % and product price after discount inside the badge.
hey @BSSCommerce-B2B there is a issue. this code is making the badge visible only inside the product page but there is no badge showing on homepage product and also how do I change discount % on badge. please
@BSSCommerce-B2B now another issue, I changed the sale badge colour to pink but on home page it is still in black colour. how do I change the colour please
yes I’ve hide it. look the discount badge is going down in few mobile view and when I try decreasing the font and other sizes to fit it in the same row then it looking so small . please help
@ctal37 , I don’t think it can fit in a row on small devices because it’s too long. You can remove this to reduce the width of the custom element I gave you earlier.
@BSSCommerce-B2B hey it is possible check how Zara showcasing all the prices and still have space right after the badge. check screenshot and try helping. if it doesn’t fit in a row thn no use of this badge. so please help
hey it worked but look this code is decreasing the size of the badge even inside the product page but I don’t want to decrease the size of the badge in here. check screenshot please