Install Apex Reviews App On Your Shopify Store

How to install review stars on the collection pages on Shopify’s newer and older themes ?

Estimated reading: 3 minutes 762 views

This tutorial explains how to display star rating in your collection page. Please follow the next steps to add the code snippet in your theme.

Add Star Rating Code Snippet

Ekran Resmi 2022 11 08 12.55.07

After adding star rating code snippet, your collection pages will display reviews rating with stars

1- Navigate to Online Store > Themes in your Shopify admin

Ekran Resmi 2022 11 04 20.11.14

First Go to Online Store

Choose the theme you want to add the code Snippet

2- Go to Edit Code from Action Menu

Ekran Resmi 2022 11 04 20.11.14

Click on Action Menu

Ekran Resmi 2022 11 04 20.11.24

Select Edit Code

3- Select theme.liquid file in Layout folder and paste the code below after the <head> tag

<script src=”https://app.apex-reviews.me/widgets/ApexCollectionBadges.js”></script>

Ekran Resmi 2022 11 09 23.07.37

Find and select theme.liquid file in Layout folder 

Add the code above here, below the <head> tag

4- Locate the code file in Snippets folder where the star rating code will be added

In Edit Code menu, go to Snippets folder. Since each themes has a different file name, please search for one of the following files: card-product.liquid or product-card-grid.liquid or product-card.liquid or product-grid-item.liquid or product-thumbnail.liquid or product-info.liquid file

Ekran Resmi 2022 11 04 18.47.22

Click on Snippets and find the one of the above mentioned code file

Ekran Resmi 2022 11 08 10.39.56

In Dawn theme please choose card-product.liquid file. For other themes please search the above mentioned file names in the Snippets folder.

In Dawn theme we found card-product.liquid file. But in Debut theme you need to select product-card-grid.liquid file

Ekran Resmi 2022 11 08 11.05.59

For example in Debut theme you need to select product-card-grid.liquid file

4- Copy and paste the following code below the code line including {{ product.title }}

Please find the code line containing { product.title } and add the following code after it:  <div class=”apex_badge” data-product-id=”{{ product.id }}”></div>

Ekran Resmi 2022 11 08 12.05.09

Find the code line containing { product.title }

And paste the code above here

Please note that in newer themes, the code we are looking for may have “card” prefix like this: {{ card_product.title }}

In this case the code we need to add should also include “card” prefix and the code will be like this:

<div class=”apex_badge”  data-product-id=”{{ card_product.id }}”></div>
 
Ekran Resmi 2022 11 08 10.39.04

In Dawn theme, the code line we are looking for is this. 

Ekran Resmi 2022 11 08 10.37.29

Please add the code above here just after the code line containing  {{ card_product.title }}

6- Save the file

We hope this tutorial was helpful. If you need help please contact us.

Leave a Comment