How to change sale price color without affecting regular price color

How to change sale price color without affecting regular price color

medusasmakeup
Explorer
52 2 15

How to change sale price color without affecting regular price color. I use sense theme.

Replies 3 (3)

PageFly-Amelia
Shopify Partner
626 165 237

Hi @medusasmakeup ,

 

This is Amelia from PageFly - a Landing Page Builder App

 

You can use custom CSS. Here's how you can do it:

Step 1: Access the Theme Editor

  1. Go to your Shopify admin panel.

  2. Navigate to Online Store > Themes.

  3. Click on Actions > Edit code next to your Sense theme.

Step 2: Add Custom CSS

  1. In the left sidebar, find and click on the Assets folder.

  2. Open the base.css file (or theme.css if you have it).

Step 3: Add the CSS Code

Add the following CSS code at the bottom of the file:

 

/* Change sale price color */
.price__sale .price-item--sale {
  color: #ff0000; /* Replace with your desired color */
}

/* Ensure regular price color remains unchanged */
.price__regular .price-item--regular {
  color: inherit; /* Keeps the regular price color as defined elsewhere */
}

 

 

I hope that my solution works for you.

Best regards,

Amelia | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 
➜ Weekly updated Shopify tutorials on YouTube 


All features are available from Free plan. Live Chat Support is available 24/7.

steve_michael2
Trailblazer
175 21 23

1) Go to Online Store
2) Edit Code
3) Find theme.css/base.css file
4) Add the following code in the bottom

/* Sale price styling */
.price--highlight {
    color: #ff0000 !important; /* Change to your desired color */
    font-weight: bold !important; /* Optional: Make the sale price bold */
}

/* Regular price styling */
.price--regular {
    color: #333333 !important; /* Keep the regular price a different color */
}

Thanks!
if you find my advice helpful please remember to LIKE and accept as SOLUTION.

 

Crafting exceptional online experiences with innovative design and technology.

Amanda_Fordeer
Shopify Partner
147 10 30

Hi @medusasmakeup,

 

Others have shown you how to change the sale price, but if you encounter difficulties with coding, you can utilize our Price Badges feature to adjust the size, color, format, etc., of prices. Additionally, you can add a badge alongside to emphasize and highlight the discount program as illustrated below:

 

Amanda_Fordeer_0-1732246971506.png

If you find my suggestion helpful, please give it a like or mark it as a solution!
And discover more approaches to:
Streamline invoicing process Boost sales with labels & badges Add social proofs & create FOMO
Or get valuable updates and private deals regarding Shopify here.