Show star ratings on product, collection and home pages

A2Reviews can show a compact star rating, called the Total reviews widget, with the average rating and review count. It can appear under product titles on product pages, on collection pages, on your home page and in search results. This article explains how to set it up and style it.

Shopify Online Store 2.0 themes

Step 1: Enable the app embed

  1. From your Shopify admin, go to Online Store > Themes and click Customize.
  2. Click the App embeds icon in the left panel.
  3. Switch on A2Reviews App.
  4. Click Save.

To turn A2Reviews off later, switch the embed off and save.

Step 2: Enable the blocks on the product page

  1. In the theme editor, choose Products from the page drop-down and select your product template.
  2. After you install the app (or publish a new theme), two A2Reviews blocks are added to the product template in a disabled state. Enable them and place them where you want the star rating and the reviews section to appear.
  3. Click Save.

The Instructions page in the A2Reviews dashboard shows these steps for your theme. It also has Install and Preview in theme buttons, and the published theme is marked Live.

Shopify legacy (vintage) themes

On legacy themes, A2Reviews installs its code automatically when you first install the app and whenever you publish a theme. If your theme's structure prevents this, add the snippets manually.

Star rating on the product page, usually placed under the product title:

{% render 'a2reviews-total' product:product %}

Star rating in collection product lists, placed in your theme's product card or loop file:

{% render 'a2reviews-total' type:'collection' product:product %}

Full reviews list on the product page:

{% render 'a2reviews-widget' product:product %}

Tip: File names for product cards differ from theme to theme. If you're not comfortable editing theme code, contact support through Help Center in the dashboard.

Choose where the stars appear

Go to Settings > Reviews and open the Heading & Stars Rating Widget tab. Under Total reviews widget:

To hide stars on specific collections only, see Collections Display.

Style the stars and summary heading

On the same tab you can set the Star Style, the Star Average Color (which also applies to the Total reviews widget), the Percent progress bar color, the text style, and the colors of the Write a review button. You can also show or hide the main title on the product and Feature pages, and turn on Show Images Slider. Click Save Change when you're done.

Rating data in Shopify

Whenever a product's reviews change, A2Reviews automatically updates that product's rating summary in Shopify. You don't need to sync anything manually.

Related articles: Review Widget, Collections Display, Custom CSS.