Change sale colour (BULLET THEME)

taliad998
Tourist
19 0 0

This is our website:  https://heartzstudios.com/

 

I've entered this code to change the sales price of the products on the homepage to red:

 

span.new-price {
color: #CB190E !important;
}

 

This code work fine on all the products except for one, which is the hat. The hat is not on sale therefore I want the colour to remain black instead of the red right now. Any advice on how to change that?

 

7651709830066_.pic.jpg

 

Replies 6 (6)

taliad998
Tourist
19 0 0

passcode: heartz1

deepaksharma
Shopify Partner
448 62 92

Hey I can't enter your website it's asking for password

 

Deepak Sharma || Shopify Developer || Helping eCommerce Stores
- Was my reply helpful? Accept it as solution
- Was your question answered? Mark it as an Accepted Solution.
-CHAT ON WHATSAPP | BUY ME A COFFEE | MAIL ME: ds2305187@gmail.com
taliad998
Tourist
19 0 0

passcode: heartz1

taliad998
Tourist
19 0 0

Hi do you know what the issue is

deepaksharma
Shopify Partner
448 62 92

Yes you have applied the color to price.

 

But you want is that this hat should remain black because it is not on sale right?

This requires if statement in the liquid rather than simple CSS code if it's not already there.

Hopefully, it will help you. If yes then Please don't forget to hit Like and Mark it as the solution!

Deepak Sharma || Shopify Developer || Helping eCommerce Stores
- Was my reply helpful? Accept it as solution
- Was your question answered? Mark it as an Accepted Solution.
-CHAT ON WHATSAPP | BUY ME A COFFEE | MAIL ME: ds2305187@gmail.com
taliad998
Tourist
19 0 0

Can you please advice what code to input and where to code it to make the hat price in black?