Display reviews on non-product pages

This tutorial will show you how to add Ryviu snippet code on a non-product page of your store.

You can add a Ryviu product review snippet to a non-product page to show reviews for a single product on a non-product template page.

Here is the original Ryviu Product Review widget snippet code.

<div class="lt-block-reviews"> 
<ryviu-widget 
product_id="{{product.id}}"
handle="{{product.handle}}"
title_product="{{product.title}}"
image_product="{{ product.featured_image.src | img_url: '100x' }}">
</ryviu-widget>
</div>

By replacing the values below in the snippet codes, you can make reviews display on a non-product template page.

  • Replace {{product.id}} with your product ID

  • Replace {{product.handle}} with your product handle(Shopify), slug(WooCommerce)

  • Replace {{product.title}} with your product name

  • Replace {{ product.featured_image.src | img_url: '100x' }} with URL of thumbnail image of your product‌

The example code will be like this:

<div class="lt-block-reviews"> 
<ryviu-widget 
product_id="66669999"
handle="handle-of-this-product"
title_product="This is name of product"
image_product="https://your-image-domain.con/image.png">
</ryviu-widget>
</div>

Related articles


Need help?

Get in touch with our support team through live chat or email at [email protected]. We're here to help!

Did this answer your question?
😞
😐
😁