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
1 Like
rougeon
February 25, 2020, 11:59am
3
1 Like
@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
1 Like
rougeon
February 25, 2020, 3:08pm
5
Thank you @oscprofessional ! This worked perfectly!
1 Like
Hi, I did the same thing but nothing happen. I’m using v4.5.5. Please help.
1 Like
Hello @manhuynguyen ,
Can you please share your site url?
1 Like
http://horad.co/ here it is. access password: 130196
1 Like
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
1 Like
@oscprofessional Hi, can you please give some inputs on this. I’d really appreciate it.
1 Like
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
1 Like
@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;
}
2 Likes
Hello @offcode ,
Can you please give me your site url so that I can check
1 Like
@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?
1 Like
@manhuynguyen ,
Please add below css
span.ProductItem__Label.Heading.Text--subdued {
background: black;
}
Note:You can change color as per your requirement
2 Likes
It works perfectly. Thank you very much @oscprofessional
1 Like
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.
1 Like