The Star Rating Badge shows the average star rating and review count on your product and collection pages. It helps shoppers quickly assess your products and adds trusted social proof, ultimately boosting your store’s conversion rate.
How it looks
On the Product page:
On the Collections page:
How the Star Rating Badge works
We calculate the average rating of the product and display the star icons using the following logic:
x.76 to x.99 → rounds up to the next full star
x.26 to x.75 → shows a half star
x.01 to x.25 → rounds down to the previous full star
For example:
A product with a 4.2 average displays 4 full stars (since 4.2 falls in the 4.01–4.25 range).
A 4.5 average displays 4.5 stars, and a 4.8 average displays 5 stars.
The numeric average (e.g. "4.2") can also be shown as text next to the stars — see the {{ average_rating }} and {{ average_rating_1_decimal }} variables in the Texts section below.
This ensures the Star Rating Badge provides a clear visual summary while remaining accurate and fair to all your reviews.
Set up your Star Rating Badge
Customize the Star Rating Badge with in-app settings
You can customize your Star Rating Badge and see a live preview of your changes with sample data or no reviews, before saving. Adjust texts, colors, and display options, and watch the badge update instantly — helping you fine-tune its look before publishing to your store.
1. Texts
Available on the Free plan
To change the texts in the Star Rating Badge:
From your Judge.me admin, go to Settings > Widgets > Star Rating Badge.
In the Text section, click Customize text.
Edit the texts in the following fields to your likings and click Save:
Field | Default texts | Variables |
Star rating text (no reviews) | No reviews | |
Star rating text |
| Variables that you can use in the Star rating text field:
Example:
|
2. Texts and star icons
Available on the Free plan
To set whether the texts will show in the Star Rating Badge:
From your Judge.me admin, go to Settings > Widgets > Star Rating Badge.
Scroll down to the Display properties section.
Select from the following options:
"Show stars only"
"Show text and stars" (default)
Click Save.
3. Products with no reviews
Available on the Free plan
To set whether to show the Star Rating Badge when there are no reviews for the product:
From your Judge.me admin, go to Settings > Widgets > Star Rating Badge.
Scroll down to the Display properties section.
Choose from the following options:
"Always show the widget"
"Hide the widget if the product has no reviews" (default)
Click Save.
3. Number of star icons
To control whether the Star Rating Badge will show all 5 star icons or only 1 star icon:
From your Judge.me admin, go to Settings > Widgets > Star Rating Badge.
Scroll down to the Display properties section.
Open the Number of stars dropdown.
Select one of the following options:
1 – to show only 1 star icon
5 (Default) – to show 5 star icons
Click Save.
Customize the Star Rating Badge with CSS
Add custom CSS in Judge.me
To add custom CSS for the Star Rating Badge in the Judge.me Reviews app:
From your Judge.me admin, go to Settings > Widgets > Star Rating Badge.
Open the Advanced section.
In the Custom CSS field, enter your CSS code.
Click Save.
Custom CSS you add here works this way:
The Custom CSS field is limited to 500 characters.
Judge.me adds
.jdgm-preview-badgein front of every rule you add here, so your CSS only changes the Star Rating Badge.Don't start a rule with
.jdgm-preview-badgehere. Judge.me already adds it, so the rule looks for a badge inside another badge and changes nothing.
Add custom CSS in the Shopify theme editor
To add custom CSS for the Star Rating Badge in your Shopify theme editor:
From your Shopify admin, go to Online Store > Themes.
Find the theme that you want to edit, and then click Edit theme.
Click the Theme settings icon (the second icon) on the top left.
Open the Custom CSS section.
Enter your CSS code.
Click Save on the top right.
Class names
To change parts of the Star Rating Badge that the examples below don't cover, use these class names:
In Judge.me: use them as they are. Judge.me adds
.jdgm-preview-badgein front.In your Shopify theme editor: start each rule with
.jdgm-preview-badge, for example.jdgm-preview-badge .jdgm-prev-badge__text.
Part | Class name |
Whole Star Rating Badge, one per product |
|
Inside of the badge |
|
Stars |
|
Review count text |
|
Question count text, when the badge shows Q&A |
|
Example CSS
Example CSS you can add in Judge.me to change parts of the Star Rating Badge:
What you want to change | CSS code |
To show the stars and the text in 2 lines on mobile screens | @media only screen and (max-width: 900px) { |
To change the size of the stars | .jdgm-prev-badge__stars .jdgm-star { |
To change the size and color of the review count text | .jdgm-prev-badge__text { |
Example CSS you can add in your Shopify theme editor to change parts of the Star Rating Badge:
What you want to change | CSS code |
To hide the Star Rating Badge on a specific product page | .jdgm-preview-badge[data-id="YOUR_PRODUCT_ID"] { |
To center the Star Rating Badge on mobile screens | @media only screen and (max-width: 900px) { |









