Star rating badge

The star rating badge shows a product's average rating and its number of reviews, such as ★★★★★ 4.8 (127), wherever you place it: next to the product's title on its page, and on collection and search pages. Small, but it's often the first thing a shopper checks.

Add the badge

With the script on your site, place this where the stars should appear, with the product's id:

<div class="reytd-stars" data-product="10001"></div>
Live example, with made-up reviews

Instead of data-product, use data-sku to name the product by its SKU, or data-group to show a product group's rating. See Place the widgets.

On collection and search pages

Add a badge to each product in the list, each naming its own product. Every badge reads one small file for its product from the CDN, cached close to the shopper, so a page with 48 products loads 48 small files, plus one settings file for the whole page. Badges added later, by infinite scroll or a quick view, are picked up too.

What shoppers see

  • The average and the count, in the page's language, with your star colour.
  • No stars for a product without reviews, so new products don't show empty stars. The badge keeps its line, so the text below it doesn't move.
  • A click on the badge scrolls to the product's reviews widget on the same page, when both name the product the same way (the same data-product, data-sku or data-group). A closed WooCommerce Reviews tab opens first. Without a reviews widget on the page, the badge is just text, not a button, so inside a product card's link the click still goes to the product.
  • On the Free plan, a small Reytd link after the stars.

The badge picks up the font and colour of the text around it, so it fits next to your product titles without any CSS. It doesn't add rating markup for Google on its own: the reviews widget does.