Hi guys, I would like to change the color of the number that is displayed when a product has a discount.
First product → Price 35.90€ in (red) normal price 45.90€ in (black)
Thank you!
Julius
Goal: Style only the current sale price (discounted price) in red while keeping regular prices black; also adjust the price number size without affecting other text.
Key steps and attempts:
Current status:
Notes:
Hi guys, I would like to change the color of the number that is displayed when a product has a discount.
First product → Price 35.90€ in (red) normal price 45.90€ in (black)
Thank you!
Julius
Can you share your website so we can provide a code appropriate for you?
This is Noah from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the
Hope this can help you solve the issue
Best regards,
Noah | PageFly
I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.
Please add this css in your bottom of the css file:
.grid-product__price–current {color: red !important;}
Regards,
San
Please share with me your preview link URL again,
the old one has expired and i can’t access to check the structures.
Thank you
Please share the link again. This is already expired
Thank you. Here you go.
span.grid-product__price--original span {
color: red;
}
Sorry for the late reply. Hope you still can help me!
This worked kinda. I need the black number from the products that are on sale red. Not the previous price.
Not like this:
But like this:
Thank you!
Can you also please tell me the code for the price number size. Without changing the size of all the text? Thank you!!
Looks like you have a code different on your live website. Anyway, you can try the code instead
span.grid-product__price--from {
color: red;
}
Looks like you have a different code in your live theme. Anyway, you can try the code instead
span.grid-product__price--from {
color: red;
}
Its still not just the price of the sales products. Can you tell me whats the code for the numbers, that are sale-products?