For the complete documentation index, see llms.txt. This page is also available as Markdown.

Edit your review badge

Configure the compact star rating and review count you show on product cards and listings.

The review badge is the compact star rating and review count you place on product cards, collection pages and anywhere else you want a rating at a glance. You edit it in the review widget editor, with Review Badge selected in the widget dropdown.

For the editor itself, the preview and how saving works, see Customise review widget design.

Review Badge Settings

The stars

  • Star display, which controls whether the badge shows the full rating, the stars alone, or stars with text.

  • Alignment, Star style, Star size (px) and Star colour.

The text beside the stars

  • Show text turns the text on or off.

  • Text is the text itself, and accepts variables.

  • Font size (px), Font weight and Font colour.

Behaviour

  • Hide when there are no reviews, so a product with no reviews shows nothing rather than an empty rating. This is on by default and worth leaving on, because an empty rating reads as a bad rating.

  • Link to reviews section, which makes the badge clickable and scrolls the shopper down to the reviews.

The text variables

The Text field accepts three variables, listed under the field in the editor:

Variable
What it renders

{{ average_rating }}

The average rating.

{{ average_rating_1_decimal }}

The average to one decimal place.

{{ n }}

The review count.

The default is:

which renders as 4.3 (128 reviews).

You can write whatever reads best for your store. {{ n }} reviews alone drops the number, and Rated {{ average_rating_1_decimal }} by {{ n }} customers turns the badge into a sentence.

Last updated