Comment on page
Questions Widget
The Reviews Widget can be configured to show a Questions tab as part of a combined widget. This article describes how to include a standalone Questions Widget without reviews.
The Questions Widget lists questions that customers have asked and answers you've provided to them.
Shopify Online Store 2.0
Shopify Vintage Theme
- 1.Create a new liquid snippet in the snippets folder with the following name:
snippets/okendo-reviews-widget.liquid
- 2.Inside your newly created liquid file, add the following HTML snippet:<div data-oke-questions-widget></div>
- 3.
- 4.Copy the following snippet and place it in your Theme Code where you would like the widget to appear:
{% render 'okendo-reviews-widget', product: product %}
The preferred method of configuring the Questions Widget is via the Okendo Admin which can be accessed in the Okendo app via Reviews -> On-Site Displays:

Use these data attributes on the widget markup to customize its configuration. None of these attributes are required.
Data Attribute | Description | Value Type | Supported Values |
---|---|---|---|
data-oke-reviews-product-id | Used to specify a Shopify Product ID with the word shopify- in front of it. The star snippet will only show aggregate data for a particular product. | string | Any valid product ID in the format shopify- e.g. shopify-1234567 . |
data-oke-reviews-group-id | Used to specify an Okendo Group ID so that the reviews widget only shows reviews for the specified group of products. | string | Any valid product group ID in a GUID format e.g. 69d2e67d-b980-4333-97b7-30411807a7b1 |
data-oke-reviews-ask-question-product-id | Used to show the “Ask a Question” in the reviews widget to leave a question for the specified product. | string | Any valid product ID in the format shopify- e.g. shopify-1234567 . |
Without specifying a data source for the questions, the widget will show all questions for your store. You can provide either a Product ID or a Group ID to use that as the data source for the questions.
<div data-oke-questions-widget data-oke-reviews-product-id="shopify-<PRODUCT_ID>"></div>
<div data-oke-questions-widget data-oke-reviews-group-id="<GROUP_ID>"></div>
When the widget is in all-reviews or grouped mode an explicit Product ID is needed to show the "Ask a Question" button.
<div data-oke-questions-widget data-oke-reviews-ask-question-product-id="shopify-<PRODUCT_ID>"></div>
Last modified 10mo ago