Shopify themes, liquid, logos, and UX
i want to change the color on the star rating in the product grid to the color shown on the product page.
//Please when you post a requestion have the following so that fellow community members //can help you better:
//Preview Link: link that we can see your issue
//Theme name: name of the theme e.g.: Down
//Can code: Yes / No / Kindof
By that can you share your preview link and theme name?
To change the color of the star rating in the product grid to match the product page color, you can add some custom CSS. Go to your Shopify admin, then navigate to ""Online Store"" > ""Themes."" Click on ""Customize"" for your current theme.
Next, look for ""Theme settings"" or ""Edit code."" If you see ""Edit code,"" click on it, and then find the appropriate CSS file, usually called `theme.scss.liquid` or `styles.css.liquid`.
Add this snippet at the bottom:
```css
.product-grid .star-rating {
color: #yourColorCode; / Replace #yourColorCode with the desired hex color /
}
```
Make sure to replace `#yourColorCode` with the hex code of the color you want to use. Save the changes, and it should reflect on your product grid.
Hi @ads, thanks for your question.
To change the color of the Star Rating on the product page, you can add the following code to your Custom CSS section. Please go to Online Store > Theme > Customize > Product page > Product Information > Custom CSS.
.rating-star:before {
content: "\2605\2605\2605\2605\2605";
background: linear-gradient(
90deg,
#colorcode
var(--percent),
rgba(var(--color-foreground), 0.15) var(--percent)
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
I hope that would be helpful.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025