Change the colour of compare price on collection and product page

Hi guys. Am using Expanse theme, I wish to change compare price colour to black on both collection and product page. Please me with code.

Thanks!

www.hyggehusmobler.se

Hello Eze_Paul,

Looking at your shop, all the div elements for the prices have the color red, that’s why your they all look similar.

In the product page with the discount prices, you have the following structure:

16 000 kr
16 000 kr

Adding the following somewhere in your theme should fix it:
.product__price--compare {
   color: #000;
}

In the collection page, you have the following structure for prices with a discount:

Sale price
17 900 kr
17 900 kr
Regular price
                  
20 000 kr
20 000 kr

                      Save 11%
                    

Adding the following somewhere in your theme should fix it:
.grid-product__price--current {
   color: #000;
}

Hi @Eze_Paul

This is Henry from PageFly - Landing Page Builder App

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file components.css

Step 3: Paste the below code at bottom of the file → Save

span.product__price.product__price–compare span, span.grid-product__price–original span {color: black !important;}

Hope that my solution works for you.

Best regards,

Henry | PageFly