How to Change Badge/Sticker size and shape in Responsive Theme

I have been searching endlessly to no avail. I would like to change the shape of the “SALE” and “NEW” product stickers (or badges) in my theme. It is currently a rectangle and I would like to change it to a circle shape. No other resolved query with suggested code has worked.

1 Like

can you provide link your store?

Hi @threadfare Could you drop your store link so I can provide the code?

www.threadfare.com

www.threadfare.com

Hi @threadfare

Please go to your Online store > Themes > Edit code > open style.css or style.css.liquid file, add this code at the bottom

.sale_banner, .new_banner {
border-radius: 50%;
}

Hi @threadfare ,

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code just above tag

<style>

.sale_banner, .new_banner {
height: 80px!important;
width: 80px!important;
border-radius: 50%!important;
padding: 0px!important;
display: flex!important;
align-items: center!important;
justify-content: center!important;
}

</style>

Result:

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

Best Regards,
Makka

Hi @threadfare

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:
.sale_banner, .new_banner {
    border-radius: 100% !important;
    padding: 12px 10px 10px 10px;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!