Display review stars on the Google search results

How to add the Review snippet?

Review snippet is found in the Rich Results Test tool
Review snippet is found in the Rich Results Test tool

How to manually add the Review snippet?

  1. Go to your Shopify Themes menu (from Admin -> Online Store -> Themes)
  2. On your current theme, click on the “Actions” button and then select “Edit code”.
  3. Open the template or section you use for product pages (usually it’s called product-template.liquid or product.liquid. But, some themes work differently).
  4. Copy and paste the following code into your product liquid file:
{% if product.metafields.farout.num_reviews %}
<script id="faroutSchemaJson" type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Product",
"@id": {{ canonical_url | json }},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "{{ product.metafields.farout.avg_rating }}",
"reviewCount": "{{ product.metafields.farout.num_reviews }}"
},
"name": {{ product.title | json }}
}
</script>
{% endif %}
FarOut’s Review Snippet Code in product liquid file
FarOut’s Review Snippet Code in product liquid file

Entrepreneur | Data Scientist | Machine Learning Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

GraphQL: Apollo Server Plugins in Typescript

Slick matchmaking with graph database

What makes an Enterprise app?

enterprise application

Best Kodi builds 2021

Josh clothes customer care number|9832336299//9832336299

“MY First Year Experience of B.Tech”

CSS Weekly Issue 28

Are you relying on automated upgrades of your SQLServer in AWS?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sina Dabiri

Sina Dabiri

Entrepreneur | Data Scientist | Machine Learning Engineer

More from Medium

10X Potential: Digital Turbine Inc (Ticker: APPS) — Part 4

What’s meta with Meta?

Revenue Rules! More Effective, Scalable and Predictable Growth via Marketing

Why is it important to build MVP in 2022?