Changing the colour of stars reviews in theme

Solved

Changing the colour of stars reviews in theme

tboudier
Tourist
20 0 1

Hi,

I would like to change the colour of the stars reviews for a green colour. I found in the CSS file theme.css the following code:

.spr-icon {
color: var(--product-review-star-color);
}

So I tried to replace this code by this one but it does not work:

.spr-icon { fill: #006400; }

Can somebody help me?

Many thanks

 

Accepted Solution (1)
syedsumaimaly
Trailblazer
147 16 22

This is an accepted solution.

@tboudier Try this code..

{% style %}
span.jdgm-star.jdgm--on {
    color: red;
}
{% endstyle %}

If I managed to help you then, don't forget to Like it and Mark it as Solutions.

View solution in original post

Replies 6 (6)

Moeed
Shopify Partner
5547 1504 1791

Hey @tboudier 

 

Could you please provide your Store URL and, if applicable, the Password too? Your cooperation is greatly appreciated!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


tboudier
Tourist
20 0 1

Hi Moeed,

Thank you for your help!

Sure, here it is: https://bangkokfirstaid.com/

There is no password and it concerns the carrousel section.

Screen Shot 2566-09-30 at 10.57.45.png

syedsumaimaly
Trailblazer
147 16 22

Hi @tboudier 

Follow these Steps:

Go to Online Store  Edit Code Find theme.liquid file or base.css

Add the following code in the bottom of the file above </body> tag

 

 

span.jdgm-star.jdgm--on {
    color: red;
}

 

 

 

 

RESULT:

syedsumaimaly_0-1696330688621.png

If I managed to help you then, don't forget to Like it and Mark it as Solutions.

 

tboudier
Tourist
20 0 1

Hi Syedsumaimaly,

Thank you for your help.

I did it and unfortunately it did not work.

https://bangkokfirstaid.com/

Maybe I did something wrong? I attached a screenshot.

 

Screen Shot 2566-10-04 at 11.59.30.png

syedsumaimaly
Trailblazer
147 16 22

This is an accepted solution.

@tboudier Try this code..

{% style %}
span.jdgm-star.jdgm--on {
    color: red;
}
{% endstyle %}

If I managed to help you then, don't forget to Like it and Mark it as Solutions.

tboudier
Tourist
20 0 1

@syedsumaimaly 

Thank you so much it works perfectly!

Have a great day!