How can I modify the sale badge shape in Modular Theme?

Hey everyone,

I am trying to change the shape of the sale badge on the Modular theme. I am trying to round the edges to make it ‘pill’ shaped. Could someone please help with how to change the corner radius.

I have looked everywhere on Shopify Community and cannot find a solution

(I am talking about the small badge in the corner of the product image displaying the discount amount)

Thank you!

Hi @jr-rl

Glad to support you today .

Please paste this code at the bottom of theme.css

.product-status-flag {
    min-width: 65px !important;
    height: 35px !important;
}

This didn’t seem to work. Does this code only modify custom badges or should it also apply to the default percent off sale badge like shown in the image?

@jr-rl Please share your page URL where you want to change the design.

https://curae-days-4431.myshopify.com/

I am trying to change the ‘sale badge’ displayed in the featured collection section in the corner of the product. Ideally I would like the badge to style to be consistent in all areas it is displayed but this is the section I am currently talking about

Thank you !!

add this css code at the bottom of theme.css

.product__badge__item {
    text-align: center;
    min-width: 65px !important;
   border-radius: 50px !important;
}
1 Like

Thank you so much, that worked! I had been trying for so long!

Much appreciated!