Setup review SEO widget

    Adding review SEO widget to your theme will display the reviews on “Search Engine”.

    review-seo-screen

    – Steps to set up:

    Follow the below steps for setting up the widget:
    1. Copy below shortcode
    <div style=”display:none;”> {% if product.metafields.eggviews.reviews_count and product.metafields.eggviews.reviews_count != “0” %}<div itemprop=”aggregateRating” itemscope itemtype=”http://schema.org/AggregateRating”><span itemprop=”itemReviewed”>{{ product.title }}</span> has a rating of <span itemprop=”ratingValue”>{{ product.metafields.eggviews.reviews_average }}</span> stars based on <span itemprop=”ratingCount”>{{ product.metafields.eggviews.reviews_count }}</span> reviews. <span itemprop=”bestRating”>5</span> <span itemprop=”worstRating”>1</span></div> {% endif %} </div>

    2. Go to Online-store → Themes → Actions(Published theme) → Edit code →

    3. This step may vary according to your theme type.
    (For sectioned themes)
    a. Open file “product-template.liquid” under “Sections”.
    b. Find the keyword “itemscope”.
    c. Paste the shortcode before closing </div> tag of it and save.

    (For non-sectioned themes)
    a. Open file “product.liquid” under “Templates”.
    b. Find the keyword “itemscope”.
    c. Paste the shortcode before closing </div> tag of it and save.

    Share
    Did this article answer your question?
    Share