rougeon
February 25, 2020, 11:53am
1
Hello,
I am trying to change the color of the product price in the collection pages. I found how to do it in the theme elements with the “body light text”, however it changes also a lot of other text element such as text in the cart.
How can I change only the product price color?
Also, how can I change the sale badge color?
Thanks,
Melanie
Hello @rougeon ,
Please share your site url so that I will give you exact solution
rougeon
February 25, 2020, 11:59am
3
@rougeon ,
Go to Online Store->Theme->Edit code
Asset->theme.scss.liquid ->paste bellow code in bottom of file
.template-collection .ProductItem__PriceList.Heading span:not(.Price--highlight) {
color: green;
}
.template-collection .ProductItem__Label.ProductItem__Label--onSale.Heading.Text--subdued {
color: red;
}
Note:Please change color as per your requirement
rougeon
February 25, 2020, 3:08pm
5
Thank you @oscprofessional ! This worked perfectly!
Hi, I did the same thing but nothing happen. I’m using v4.5.5. Please help.
Hello @manhuynguyen ,
Can you please share your site url?
http://horad.co/ here it is. access password: 130196
Hello,
Please help. We have the same
issue, we want to change the color of the sale box to red and white font.
we tried the above solution and it didn’t work. Error message it couldn’t be saved
@oscprofessional Hi, can you please give some inputs on this. I’d really appreciate it.
Hi. I’m trying to I change the color of the sale box on my theme. I tried the first solution mentioned at the top of this post but it didn’t work. I have the prestige theme
@manhuynguyen ,
Add this css at the bottom of
Online Store->Theme->Edit code->Assets->theme.scss.liquid
span.ProductItem__Label.Heading.Text--subdued {
color: red;
}
Hello @offcode ,
Can you please give me your site url so that I can check
@oscprofessional thank you very much. it changes the color of the word “On sale”. Can you also give code to change background of the “On sale” badge?
@manhuynguyen ,
Please add below css
span.ProductItem__Label.Heading.Text--subdued {
background: black;
}
Note:You can change color as per your requirement
It works perfectly. Thank you very much @oscprofessional
Hello @offcode ,
Add this css at the bottom of
Online Store->Theme->Edit code->Assets->theme.scss.liquid
span.ProductItem__Label.Heading.Text--subdued {
color: white;
background-color: red;
Note:You can change color as per your requirement.