Docs

Product Rating

The average customer rating of the product as stars, with the number of reviews.

On this page

The Product Rating widget shows the average rating customers gave a WooCommerce product, as stars, with the number of reviews next to it. On a product page, the number of reviews is a link: it opens the Reviews tab of the Product Tabs widget and scrolls to it.

Four and a half filled stars followed by “(3 customer reviews)”
The average of three reviews; the number of reviews links to the Reviews tab.

Where the product comes from

The widget shows the product being viewed: on a product page template it is the product the visitor opened, and in a product loop item it is each card's product. To show one particular product anywhere else, pick it in the Product section of the Content tab.

The rating comes from the product's reviews in WooCommerce. Star ratings must be on in WooCommerce → Settings → Products; when they are off, the editor says Star ratings are turned off in WooCommerce → Settings → Products. and the live page shows nothing.

Products without reviews

A product without reviews shows no rating, so new products do not show five empty stars. In the editor, a note takes the widget's place. To show empty stars with a "No reviews yet" line instead, turn on Show without reviews.

The number of reviews links to the reviews only while the product accepts reviews.

Add a Product Rating

Open your product page template or a product loop item in the Theme Builder. Then click Insert in the rail on the left, find Product Rating in the WooCommerce group (or type "rating" in the search box) and drag it into the template. See Add elements.

Content tab settings

Content tab · Rating
SettingWhat it does
Average as a numberShows the average, such as 4.5, after the stars. Off by default.
Number of reviewsShows the number of reviews. On by default.
Reviews textYour own text for the number of reviews. %s is the number. Default: (%s customer reviews). Shown when Number of reviews is on.
Show without reviewsEmpty stars and a "No reviews yet" note while the product has no reviews. Off by default.
Text without reviewsYour own text for products without reviews. Default: No reviews yet. Shown when Show without reviews is on.
AlignmentLeft, Center or Right. Can differ per device.
Content tab · Product
SettingWhat it does
ProductLeave empty to show the product being viewed (product pages, product loop items). Pick a product to show it on any page.

Design tab settings

Design tab
SectionSettings
StarsSize, Gap, Color, Empty color and Empty stars (Filled or Outline; Filled by default).
TextTypography, Color, Link hover color and Space after the stars.

Until you change it here, the star color comes from Design System → Shop → Star color. See Shop styles. The Design tab also has the sections every element shares: Spacing & position, Background & border and Mask. See Spacing, size & position.

Behaviour tab

The Behaviour tab has the settings every element shares: anchor and classes, entrance animations, motion effects, visibility per device, display conditions and interactions. See Visibility.

Tips

  • Place the rating right under the Product Title, where shoppers look for it.
  • For the average or the number of reviews inside other text, use the Product rating dynamic tag. See Dynamic tags.