How can I change the color of the discount price?

Good morning,

I would like the discount percentage % (circled in blue in the screenshot below) to have a green background color (#00FF00) and for the writing to be white.

Example :

JADIS_0-1696343304349.png

Do you know how to do it please?

Theme: Dawn
Website: jadis-shop.com
password:rj

Hi @JADIS

Follow these Steps:

Go to Online Store Edit Code Find theme.liquid file or base.css

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

span.badge.price__badge-sale.color-background-2 {
    background-color: green;
    color: white;
}

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

Hi @JADIS

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:
span.badge.price__badge-sale.color-background-2 {
    background: #00FF00 !important;
    color: white;
}

thank you !!

thank you !!!