How to Change the Color of Product and Compare Price? shopify 2024

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 ?

i only have those

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 :slightly_smiling_face:

.product-block.cc-product-block.on-sale span.theme-money {
    color: red;
}

it worked but the problem is that now both are red

Change the code of my first message to:

span.was-price.theme-money {
    color: #000;
}

is this correct ?

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 :slightly_smiling_face: