Change size of sale badge text, and move it to left side - horizon theme

Topic summary

A user seeks to modify the sale badge on their Horizon theme store: reducing text size and repositioning it from the right to the left side of product cards.

Initial Challenge:

  • The badge displays as “On Sale” for the user but shows “Sold Out” for others (likely due to preview link limitations)
  • Multiple CSS solutions were attempted

Proposed Solutions:

  • First attempt: Adding CSS to base.css/theme.css targeting .product-badges.product-badges--top-right with right: auto; - did not work
  • Second attempt: Using left: 0; right: initial; - outcome unclear
  • Third attempt: More comprehensive CSS code for styles.css including positioning adjustments and font-size modifications

Resolution:
The user successfully resolved the issue by placing the CSS code in the custom CSS section instead of the initially suggested file locations. The discussion is now closed with the problem solved.

Summarized with AI on October 25. AI used: claude-sonnet-4-5-20250929.

Hello, i would like to change the size of my sale badge text, and also move it to the left side if the product card, rather than right side:

my store is https://vg4z20vq80vtlw7y-90984481091.shopifypreview.com/ , theme is horizon

Hello @ads18922 ,

I am not able to see the sales badge. Can you please share the product link where the sales badge is visible?

on my home page, on my product cards

Is this the one? It says sold out.

that is the sale badge, for me it says “On Sale” - i’m not sure why it says Sold Out for you, but maybe because its a preview link and this website is currently not active. Either way it doesn’t matter, as that is the same as the sale badge, so if you could give me code to customise that then that will be great thanks

Yes! Please copy and paste the code below to base.css or theme.css

.product-badges.product-badges–top-right {

right: auto;

}

And it will move to the left.

hello, that didn’t seem to work for me

Hi @ads18922

,

Try this out:

.product-badges.product-badges--top-right { left: 0; right: initial; }

Hey @ads18922,
In order to do the requested changes you need to follow you need to follow these steps.
Go to Shopify Admin >> Online Store >> Themes >> Edit Code >> styles.css
In the end of styles.css paste the following code.

.product-badges--top-right {
   left: calc(var(--badge-inset) + var(--padding-inline-start)) !important;
   right: auto;
}
.product-badges__badge--rectangle {
  padding-block: 3px !important;
  padding-inline: 8px !important;
  font-size: 11px !important;
}

Results:
After putting this code you will get this output.

if this was helpful mark as Solution & Like it.
Thanks

this is what it looks like for me

There maybe existing code that very badly effecting.
By any chance can you please share your store collab code in the p/m so that I can take a look.
Thanks

i sorted it dont worry, i just placed it in the custom css instead and it worked