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.
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024