i cant find the base.css, i wanna change color of product and compare price.
this is my link https://www.william-project.com/
A Shopify store owner is trying to change the color of product prices, specifically wanting the sale price in red and the compare-at (original) price in black.
Initial Problem:
Solution Process:
Final Working Code:
span.was-price.theme-money { color: #000 !important; }
This CSS targets the compare-at price specifically, keeping it black while the sale price remains red. The !important flag was necessary to override existing theme styles. The solution is confirmed working on the live website.
i cant find the base.css, i wanna change color of product and compare price.
this is my link https://www.william-project.com/
Try going to the online store, then click on the three dots next to the customization button and select the edit code action. Next, find the CSS file. It might be named differently than base.css, depending on the theme. It could be custom.css or something similar. Then paste your styles there.
should i try the 3 .css ?
in your theme there is a file called styles.css
you can add the following css and change the color to your preferred one
span.was-price.theme-money {
color: red;
}
great! it worked but i wanna put red on the price not the compared price
If it’s help please mark my answer as a solution ![]()
.product-block.cc-product-block.on-sale span.theme-money {
color: red;
}
Change the code of my first message to:
span.was-price.theme-money {
color: #000;
}
exactly
it didnt worked, is still red both
replace #000; with #000 !important;
try with this one:
span.was-price.theme-money {
color: pink;
}
no, it didtn worked, can you help me with the complete code please ? just to put red and black please
span.was-price.theme-money { color: #000 !important; }
@williamproject it’s working on your website, please mark my answers as a solution ![]()