Skip to main content

Adding Judge.me widgets (Stencil theme)

Install Judge.me widgets on your BigCommerce Stencil theme to display trusted product reviews.

Updated over 3 weeks ago

BigCommerce offers two theme platforms: Stencil and Blueprint. Stencil is the default for all new stores, while stores created before November 2016 may still use the legacy Blueprint theme.

This article covers how to install Judge.me widgets on Stencil, the modern theme engine that supports advanced customization, better design tools, and seamless widget integration.


Step 1: Disable the native BigCommerce review

To prevent review duplication, disable the built-in BigCommerce reviews:

  1. From your BigCommerce admin, go to Settings.

  2. Scroll down to Products > Comments.

  3. Go to the Built-in tab and uncheck Product reviews.

  4. Click Save.


Step 2: Add the installation code

Judge.me JavaScript is automatically inserted to your Stencil theme. You just need to place the widget code in your theme files.

  1. From your BigCommerce admin, go to Storefront > My Themes.

  2. Find the theme you want and click Advanced > Edit Theme Files. If there is no Edit theme files option, please make a copy of the theme first, then edit the copied theme.

  3. Follow the specific steps below to install your desired widgets.

Star Ratings

Star Ratings on product page

  1. Go to Templates > Components > Products > product-view.html.

  2. Under the line that contains class="productView-title", add the following code:

    <div class='jdgm-widget jdgm-preview-badge' data-id='{{product.id}}'></div>

  3. Click Save & apply file.

Star Ratings on listings and category pages

  1. Go to Templates > Components > Products > card.html.

  2. Above the line that contains class="prod-price", add the following code:

    <div class='jdgm-widget jdgm-preview-badge' data-id='{{id}}'></div>

  3. Click Save & apply file.


Review Widget

  1. Go to Templates > Components > Products > product-view.html.

  2. You can add the following code at the end of the file:

    <div id='judgeme_product_reviews' class='jdgm-widget jdgm-review-widget' data-product-title='{{product.title}}' data-id='{{product.id}}'></div>

  3. Click Save & apply file.


Reviews Carousel

  1. Go to Templates > Pages > home.html.

  2. Above the last </div> of the page, add the following code:

    <div class='jdgm-carousel-wrapper'>
    <h2 class='jdgm-carousel-title'>Featured reviews</h2>
    <a href='/reviews' class='jdgm-all-reviews-rating-wrapper'>
    <div data-score='' class='jdgm-all-reviews-rating'></div>
    from <span class='jdgm-all-reviews-count'></span> reviews
    </a>
    </div>

  3. Click Save & apply file.


All Reviews Counter

  1. Go to Templates > Components > Common > footer.html.

  2. Under the line that contains <div class="container">, add the following code:

    <p>We score <span class='jdgm-all-reviews-rating'></span> out of 5 based on <span class='jdgm-all-reviews-count'></span> reviews.</p>

  3. Click Save & apply file.


Verified Reviews Counter

Available for stores with more than 20 verified reviews.

  1. Go to Templates > Components > Common > footer.html.

  2. Under the line that contains <div class="container">, add the following code:

    <div class='jdgm-verified-badge-wrapper'></div>

  3. Click Save & apply file.


Floating Reviews Tab

  1. Go to Templates > Components > Layouts > base.html.

  2. Above the line that contains </body>, add the following code:

    <section class='jdgm-widget jdgm-revs-tab'>
    <div class='jdgm-revs-tab-btn btn' position='bottom'>Reviews</div>
    <div class='jdgm-revs-tab__header'>
    <a class='jdgm-close-ico'></a>
    <h3 class='jdgm-revs-tab__title'>Product Reviews</h3>
    <a href='/pages/reviews'>
    <div class='jdgm-all-reviews-rating'></div>
    <span class='jdgm-all-reviews-count'></span> reviews
    </a>
    </div>
    </section>

  3. Click Save & apply file.


Notes:

  • Avoid duplicate code: Make sure there is no extra or duplicated Judge.me code in your theme files. Duplicate snippets can prevent widgets from loading properly.

  • Add custom styles: To customize the appearance of Judge.me widgets, add your custom CSS in Assets > scss > theme.scss.

Did this answer your question?