How to add a Google reviews widget to WordPress

A Google reviews widget goes into WordPress as one snippet in an HTML block. The block you choose decides whether it runs or shows up as text.

By Sorin Maxim · Founder, ReviewMix4 min read

Title card reading "Google reviews on WordPress, paste once, done"
In short

To add a Google reviews widget to WordPress, paste the widget's snippet into a Custom HTML block in the block editor, the HTML widget in Elementor, or the Text tab of the classic editor. The Code block, rich-text widgets and the Visual tab display the snippet instead of running it.

A Google reviews widget for WordPress is one snippet pasted into an HTML block on the page where the reviews should appear. The whole job takes a few minutes; the only real mistake is choosing a block that displays the snippet as text instead of running it. This guide covers the block editor, Elementor and the classic editor, plus caching and a no-JavaScript option.

How do I add a Google reviews widget to WordPress?

Add a Google reviews widget to WordPress by copying the widget's embed snippet and pasting it into an HTML block on the page: the Custom HTML block in the block editor, the HTML widget in Elementor, or the Text tab of the classic editor. Save, then view the published page to confirm the reviews appear.

With ReviewMix the snippet is a single script tag that loads cdn.reviewmix.eu/widget/loader.js and names your widget in a data-widget attribute. The dashboard shows it with your own widget key already filled in and a copy button. Because the loader picks up the latest stable widget on each page load, you paste it once and never touch it again.

The block editor

In the WordPress block editor, add a Custom HTML block where the reviews should go and paste the snippet into it. Do not use the Code block: it exists to display code on the page, so your snippet appears as text and no widget loads. This is the mistake that ReviewMix's own step-by-step guide to where to paste the snippet was written around.

After saving, open the page itself rather than the editor preview. Some themes and editors do not run scripts inside the editing canvas, so an empty box there does not mean the widget is broken.

Elementor

In Elementor, drag the HTML widget into the section and paste the snippet there. Rich-text widgets such as Text Editor are not a reliable home for a script tag; use the element that is meant for HTML. The same rule applies to other page builders: look for an element called HTML, embed or custom code.

The classic editor

In the classic editor, switch from the Visual tab to the Text tab before pasting the snippet. The Visual tab is a rich-text field and will not run it. If you switch back to Visual later and save, check the page again, because some setups rewrite script tags on the way.

Caching and optimisation plugins

Caching and optimisation plugins can delay, combine or defer scripts, which occasionally changes when a review widget appears. After adding the snippet, clear the site's cache, open the page in a private window, and check that the reviews load. If the widget only appears after you scroll or click, look for a setting that delays third-party scripts and exclude the widget's loader from it.

ReviewMix loads asynchronously, so it does not hold up the rest of the page while it fetches reviews. Whether any widget slows your particular site is worth measuring rather than assuming, and what to measure when a review widget might slow your site lists the checks.

The no-JavaScript option

A no-JavaScript option places the reviews in the page's own HTML instead of loading them with a script in the visitor's browser. ReviewMix serves a server-rendered HTML fragment of the widget that a WordPress theme can fetch with PHP or a static build can pull in at build time. The reviews then arrive as part of the page, which search engines read as page content.

The trade is deliberate. The server-rendered version makes no requests from the visitor's browser, so there is nothing for a consent banner to block, but it shows no submitter photos. Choose it for a strict privacy setup or a theme you build yourself; use the script for everything else.

The ReviewMix widget waits for your site's consent banner before it sends its view count, so a visitor who has not consented is not counted. That behaviour is on every plan, the Free plan included. You do not configure anything in WordPress for it; the widget detects common consent managers on the page.

A worked example with ReviewMix

Setting up a Google reviews widget on a WordPress site with ReviewMix looks like this:

  • Connect the business's Google Business Profile in the ReviewMix dashboard; the reviews import on their own.
  • Choose which imported reviews to show, since each one arrives hidden, and approve any testimonials you collect.
  • Pick a layout (grid, list or carousel) and a theme (light, dark or auto).
  • Copy the snippet and paste it into a Custom HTML block on the page.
  • Publish, clear the cache, and check the live page.

The Free plan covers one Google business and one website, which is enough for a single-location business with one site. New Google reviews are imported weekly on Free and daily on paid plans; once you show one in the dashboard, it appears on the site without editing the page again. For other platforms and the wider picture, see how to show Google reviews on your website.

Frequently asked questions

Do I need a plugin to show Google reviews on WordPress?
No. An embed snippet in an HTML block works on any WordPress site without installing anything. ReviewMix is an embed, so there is nothing to install or update inside WordPress.
Does the widget work with page builders such as Elementor?
Yes, as long as the snippet goes into the builder's HTML element. Text or rich-text elements are not a reliable home for a script tag.
Will a Google reviews widget slow down my WordPress site?
A small, asynchronously loaded script has little effect, but measure it on your own pages. The things worth checking are covered in our article on whether review widgets slow a site down.

Related articles

More on widgets & websites and wordpress, review widget.

All articles

Your customers would review you. Ask them.

Start free — no card. Import your Google reviews and embed them today; upgrade when you want the printables kit, replies, daily refresh, or more businesses — or don't.

Free to start · Setup takes minutes · Hosted in the EU