Jump to content

Product Review 'star' colour

Go to solution Solved by paul2009,

Recommended Posts

  • Solution

This is an issue affecting a number of sites. Squarespace don't appear to have considered that sites may use a dark canvas. However, you can change the colour of the review stars by adding a few lines of CSS to Design > Custom CSS.

This example should make the stars magenta to match your social icons:

svg.star {
    fill: #cb0fff!important;
}

Other examples are..

Almost white:

svg.star {
    fill: #f8f6f6!important;
}

 

Gold:

svg.star {
    fill: #ffd700!important;
}

  If this post helped, please click a 'Like' or 'Thanks' icon below  ⬇️

Edited by paul2009
Squarespace changed classnames

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

Link to comment
  • 1 month later...
16 minutes ago, Nikitaly said:

Site URL: https://www.rebelrebel.co.uk/bouquets-online/bewitched-bothered-and-bewildered

Hi,

Unfortunately for us we have a dark background to our site. I've tried the following to change the colour of the review stars but its not working.  Please can you help?

.reviewStars .star {
  fill: #cb0fff;
}

Hi, try adding this to custom css (Design > Custom CSS) and let me know how it goes 🙂 

.pc0ePSvvq path {
  fill: #cb0fff;
}

 

Please give this a 👍 if it helps

Link to comment
  • 2 months later...
2 hours ago, Nikitaly said:

The fix you offered above worked for abit but now is not. 

Please see the solution above. There have been a number of updates to the Product Reviews feature in recent months and these have caused changes to the structure of pages.

For future reference, if an answer contains a classname (something prefixed with a ".") that has an unreadable series of characters, for example .pc0ePSvvq then it is unlikely to work for very long. This is because these classnames are automatically generated and change whenever Squarespace teams make changes to a page.

I hope this helps.

 

Was this post helpful? Please give feedback by clicking an icon below  ⬇️

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.