Main Reviews Widget - Customization Attributes

Here are the standard main review widget codes and list of customizations possible through coding. For basic customizations of the main review widget, please refer to the following guide instead:
https://help.stamped.io/article/180-main-reviews-widget-customizations

Note: the value of the attributes may vary depending on the e-commerce platform you're using.


In This Guide


Customizable Attributes

<div id="stamped-main-widget" 
data-widget-style="standard" 
data-product-id="{{ product.id }}" 
data-name="{{ product.title | escape }}" 
data-url="{{ shop.url }}{{ product.url }}"
data-image-url="{{ product.featured_image | product_img_url: "large" |replace: '?', '%3F' | replace: '&','%26'}}"
data-description="{{ product.description | escape }}"
data-product-sku="{{product.handle}}"
data-widget-language="{{ language }}"></div>
Attribute Value What it does
data-take-reviews 1 (numeric, max 30) Limit the number of reviews to load per page
data-take-questions 1 (numeric, max 30) Limit the number of questions to load per page
data-animation false Stops the scrolling to reviews widget on badge rating click
data-offset 150 (numeric) Adjusts the position of the scrolling to the widget from click of the badge
data-widget-language ISO 2 Letter Language Codes
Translate the widget into different languages
data-limit-words 50 (numeric) Limit the words of each review, any excess will be hidden with a "read more" link to expand the review

Disabling Font Library from Stamped.io

We include Open Sans Google font library by default, but you can easily exclude it simply by adding these JS script:

<script>
window.stamped_disable_font=true
</script>
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.