Reduce size of sale tag mobile

Topic summary

A user seeks to reduce the size of sale tags on mobile devices by approximately half on their Shopify store.

Solutions Provided:

Three community members offered CSS-based solutions with similar approaches:

  • Option 1: Add custom CSS to theme.liquid file (above </body> tag) using a media query targeting screens up to 768px width with transform: scale(0.7) on .product__badge.badge--sale

  • Option 2: Insert code into theme.css file with the same media query and transform scale approach

  • Option 3: Modify assets/theme.css with a media query targeting max-width 767px, adjusting font-size: 8px !important on .product__badge.product__badge--sale

Resolution:

The issue appears resolved, with the original poster accepting one of the solutions. All approaches use responsive CSS to specifically target mobile viewports and reduce badge dimensions through either scaling transforms or font-size adjustments.

Summarized with AI on November 3. AI used: claude-sonnet-4-5-20250929.

Hi,> > I need to change the size of the save tag on mobile by like 1/2 the size> > my site is https://lux360.net/collections/all

1 Like

Hey @Luxluxlux360

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hello @Luxluxlux360
Go to online store ----> themes ----> actions ----> edit code ---->theme.css
add this code at the end of the file and save.

@media screen and (max-width: 768px) {
.product__badge.product__badge--sale {
transform: scale(0.7);
}

}

result

If this was helpful, hit the like button and accept the solution.
Thanks

Hello @Luxluxlux360

Go to Online Store, then Theme, and select Edit Code.
Search for assets/theme.css Add the provided code at the end of the file.

@media screen and (max-width: 767px) {
.product__badge.product__badge--sale {
font-size: 8px !important;
}
}

2 Likes

Hello @Luxluxlux360

You’re very welcome! I’m thrilled to hear that you’re pleased with the outcome. Don’t hesitate to reach out if you need further assistance.

like and accepting the All solution. Thank you!