1. Home
  2. Knowledge Base
  3. Yotpo Reviews Extension

Yotpo Reviews Extension

The Yotpo Reviews Extension lets you display existing Yotpo reviews within Digioh campaigns (pop-ups, banners, inlines, sidebars, etc.).

Use the Yotpo Reviews Extension when:

  • The page already displays Yotpo reviews
  • You want to reuse those reviews inside a Digioh campaign
  • You want full control over styling using CSS
  • You want to show ratings or reviews in multiple locations on the same page

Common use cases include:

  • Highlighting product ratings in banners or sidebars
  • Showing reviews inside inline campaigns
  • Reinforcing social proof near calls-to-action

Example Digioh campaign showing embedded Yotpo reviews

Limitations & Notes

Because this extension only reads reviews that are already on the current page, there are a few important limitations to be aware of:

  • The extension reads existing Yotpo DOM elements from the current page only; it does not fetch reviews via the Yotpo API or from other pages or products. Therefore, if a product’s reviews are not displayed on the page, the extension cannot access them
  • The extension works best on pages where Yotpo is already loaded
  • It should not be used on pages without Yotpo reviews, for example: Home pages, Category pages (unless reviews are rendered there), or Landing pages without Yotpo reviews loaded
  • Review order depends on how Yotpo is configured on the site
  • The maximum number of supported detailed reviews is 5

Supported Display Modes

The extension supports two display modes. You choose the mode using campaign metadata.

1. Ratings Mode

Displays:

  • Average rating score
  • Star icons
  • Review count text (e.g., “Based on 42 reviews”)

Best for: banners, sidebars, hero sections, compact placements

2. Detailed Reviews Mode

Displays:

  • Reviewer name
  • Star rating
  • Review title
  • Review content
  • Review date

You can control how many reviews are shown using metadata.

Best for: detailed inline campaigns, quizzes, landing-style content sections

Comparison of Yotpo Detailed Reviews Mode and Ratings Mode layouts

How to Set Up the Yotpo Reviews Extension

Follow the steps below to configure the Yotpo Reviews Extension in a Digioh campaign.

Step 1: Install the extension

This extension enables the Yotpo Reviews inside your Digioh account.

  1. In Digioh, hover over your profile icon in the top right
  2. Select Extensions
  3. Go to Campaign User InterfaceExtensions page dropdown showing the Yotpo Reviews extension option
  4. Install Yotpo Reviews
  5. Click Publish to your Site

Digioh Extensions screen with Yotpo Reviews installed and Publish to your Site highlighted

Step 2: Add Campaign-Level Metadata

The extension is controlled using campaign metadata, so this must be enabled first.

  1. Open the campaign editor.
  2. Navigate to Settings > Campaign SettingsSettings dropdown highlighting Campaign Settings option
  3. Scroll down to the Campaign Metadata section and toggle it onCampaign Metadata toggle
  4. Add the required and optional metadata keys listed below

Required Metadata Keys

enable-yotpo-reviews
Enables or disables the extension
Value: true

yotpo-mode
Display mode (ratings or detailed-reviews)
Value: ratings or detailed-reviews

Optional Metadata Keys

yotpo-container-class
CSS class used for review containers
Value: yotpo-reviews-container

yotpo-review-count
Number of detailed reviews to show (1–5)
Value: 1

yotpo-max-retries
How many times to retry detecting the Yotpo DOM
Value: 5

yotpo-retry-interval
Delay (ms) between retries
Value: 300

For example: 

Campaign metadata setup example showing the different keys and values

Step 3: Add the HTML Review Container

Next, you need to tell the extension where inside the campaign the reviews should appear. This is done by adding a simple HTML container.

  1. In the Campaign Editor, go to the HTML tab
  2. Click + HTML Block
  3. Paste the following HTML: <div class=”yotpo-reviews-container”></div>

Campaign Editor HTML block containing the yotpo-reviews-container div

  1. Save your campaign

Important Notes About the HTML Container

  • This container is required for the extension to render reviews
  • The class name must match the value set in metadata
  • By default, the extension looks for: yotpo-reviews-container
  • You can add this container:
    • Multiple times within the same campaign
    • On different pages of the same campaign

Each container will display the same review content pulled from the current page.

Step 4: Style the Reviews (Optional)

If you want to customize how the reviews look (colors, spacing, fonts, etc.), you can add custom CSS directly inside an HTML block in your campaign. This allows you to visually match the reviews to your site’s design.

How to Add CSS in an HTML Block

  1. In the Campaign Editor, go to the HTML tab
  2. Click + HTML Block
  3. Paste your CSS inside a <style> tag, like this:
    <style>
      .yotpo-star {
        fill: #FFB400;
    width: 20px;
        height: 20px;
      }  .yotpo-review-card {
        background: #FAFAFA;
        border-radius: 12px;
        padding: 16px;
      }
    </style>
  1. Save the HTML block

Tip: The &lt;style&gt; tag can live in the same HTML block as your review container or in a separate HTML block; either approach works.

Common Elements You Can Style

All review elements use CSS classes, which makes customization straightforward.

  • Ratings wrapper: .digioh-yotpo-ratings
  • Star container: .yotpo-stars
  • Individual star SVG: .yotpo-star
  • Review card: .yotpo-review-card
  • Reviewer name: .yotpo-name
  • Review content: .yotpo-content

Important Styling Notes

  • CSS added in an HTML block applies only to that campaign
  • Styling will not affect Yotpo reviews outside of Digioh
  • If reviews are not visible yet, confirm:
    • The page already displays Yotpo reviews
    • The campaign is published
    • The correct container class is being used

Troubleshooting

If reviews are not appearing:

  1. Confirm the page displays Yotpo reviews outside of Digioh
  2. Confirm the container class exists in the widget HTML
  3. Check Digioh notifications for extension errors
  4. Ensure the extension is enabled via metadata
  5. Avoid using the extension on pages without reviews
Updated on January 29, 2026
Was this article helpful?
Need Support?
Can't find the answer you're looking for?
Contact Support