Installation guide
How to embed Google reviews on WordPress
Connect your Google listing, build a review widget, and place its script in the WordPress editor or page builder you already use.
Updated November 2026
Quick answer
- Edit the page and add a Custom HTML block (type
/html) where reviews should appear. - Click Edit HTML, paste the VerifiedWidget script from the Embed dialog, and click Update.
- Save the page, then open the published page in a private window.
Using Elementor or Divi? Use their HTML widget or Code module instead (see the sections below, or the Elementor and Divi guides).
Prefer a plugin? Compare the options in our best Google reviews WordPress plugins roundup. This guide uses a script, so there is nothing to install. The free plan covers one widget.
Before you open WordPress
A saved widget, with its script copied exactly from the Embed dialog. You also need a WordPress role that can publish unfiltered HTML (code WordPress does not clean up). On a normal site, Administrators and Editors have this right; Authors and Contributors do not. On a multisite network, only Super Admins have it (see WordPress's roles guide). A sample preview does not mean your own reviews have imported yet, so check the business name and review count first.
If you choose WordPress / PHP in the Embed dialog, the code has two parts. Paste only part 1 (the review placeholder and the script) into the block. Part 2 is optional PHP for your theme's header. PHP does not run inside a block, so it will not work there.
Gutenberg: use a Custom HTML block
- In WordPress, open the page where reviews should appear. Add a new block at the exact position you want the widget.
- Search the block inserter for Custom HTML, or type /html in an empty block. Click Edit HTML, paste the copied script into the code box, and press Update. Since WordPress 7.0 the block also has CSS and JavaScript panels, shown only to users allowed to add unfiltered HTML. Put all of the install code in the HTML panel.
- Save or update the page, then open the published page in a separate browser tab. Check the result while signed out as well as while editing.
The editor's preview may handle scripts differently from the published page. If the script disappears after saving, your account may lack permission to publish unfiltered HTML, or your host may restrict it. Ask an administrator with the right permissions to place the code. WordPress explains this in its Custom HTML block guide.
What the Custom HTML step looks like
In the block editor, the Custom HTML block is in the inserter under Widgets, or you can type /html in an empty block. Paste the whole install code, from the first line to the closing script tag, then save.
Block inserter
- 1+ Add block
- 2Widgets
- 3Custom HTML
- 4Edit HTML
<div data-verifiedwidget-id="YOUR-WIDGET-ID">
<div data-vw-fallback style="font-size:15px;line-height:1.5">
<p style="margin:0 0 12px">Customer reviews of <strong>Your Business</strong>.</p>
<p style="margin:0"><a href="https://verifiedwidget.com/r/YOUR-WIDGET-ID">Read more reviews of Your Business</a></p>
</div>
</div>
<script src="https://verifiedwidget.com/widget.js" crossorigin="anonymous" async></script>The same code works on any site that accepts HTML. See the plain HTML guide for what each part does.
Classic Editor: switch to Text
If your site uses the Classic Editor, open the page and switch its editor from Visual to Text. Paste the embed at the point where reviews should appear, then update the page and check the published result. Avoid moving back and forth between modes after pasting without checking whether WordPress changed or removed the script. If the code is stripped on save, ask a site administrator to verify your permissions and the site's security settings.
The install code should sit in the page where you want the widget, not inside a code-formatting block that displays it as text. A Text-tab preview can still differ from the public page. Check the finished page on a phone and in a private browser window before calling the installation complete.
Elementor: use an HTML widget
Open the target page with Elementor. Drag the HTML widget into the section where reviews belong, paste the VerifiedWidget script in its code field, and update the page. Open the published page to confirm it loads. Elementor's HTML widget documentation says scripts can be added there, but access may be limited to administrators. If you cannot find or use the HTML widget, check your WordPress role or ask the site owner.
Give the section enough width for the chosen layout. If a carousel appears cut off, inspect the Elementor column width, overflow settings, and spacing. Try a list or slider layout for a narrow sidebar. Do not judge mobile appearance from desktop editor width alone.
Divi: use a Code module
In Divi's Visual Builder, add or open the row where reviews should go. Insert a Code module, paste the embed in the Text field on the module's Content tab, save the module, and publish the page. Divi's Code module guide confirms that it accepts third-party HTML and JavaScript. A script may appear only after you save and leave the builder, so inspect the public page.
If the display is too narrow, try a wider row or a more compact layout. If you placed code in a global Divi header or template, check every page that inherits it before removing an older widget. A page-level Code module is easier to test first.
Theme widget areas: footer or sidebar
Some WordPress themes provide footer and sidebar widget areas. Look under Appearance → Widgets, or the equivalent area in your theme's editor. If the area accepts a Custom HTML block or widget and permits scripts, paste the embed there. Theme support varies: a full-site editing theme may use a template part instead of the classic Widgets screen. WordPress documents both classic widget areas and the block-based Widgets editor.
A footer placement can load on every page, so consider how its views count toward your monthly plan allowance. A list often fits better than a wide review grid in a sidebar. The badge layout is different: it floats in a corner of the screen, wherever you paste the code. Test the site on mobile to confirm the widget does not crowd navigation or cover page content.
To load a floating badge on every page without touching theme files, use a header-and-footer code plugin such as WPCode. Paste the one-line badge script into its footer box and save. Keep grids and carousels out of site-wide footer code, because they have no spot on the page and would land at the very bottom.
<script src="https://verifiedwidget.com/widget.js" data-widget-id="YOUR-WIDGET-ID" crossorigin="anonymous" async></script>Widget not showing? Check these in order
- Published page: check the public URL outside the editor. If you see the install code as text, it went into the wrong block or module.
- Saved code: reopen the page. If the script tag vanished, check WordPress permissions, your host, and security plugins that remove scripts.
- Correct listing: confirm the imported business and last successful sync in VerifiedWidget. Check visibility filters and the saved review collection (Pro plan) if the widget is empty.
- Allowed domain: if you enabled a domain allowlist, add your live domain. That also covers www and other subdomains, such as staging.yoursite.com. A staging site on a different address must be added on its own.
- Cache: clear the WordPress cache, any page-cache plugin, and your CDN cache after updating an embed. Disable script delaying or JavaScript combining for a short test if a performance plugin interferes, then configure an exception with your site administrator.
- Blocked requests: a content security policy, consent manager, ad blocker, or firewall can block the widget script or network request. Check your browser's developer console for blocked requests and ask the site administrator to allow the required source.
- Usage: check monthly view allowance and, on Free, the review import and refresh limits. A preview with fictional reviews is not proof that your live widget has data.
If it still fails, send support the published page URL, widget ID, what you see, and any browser error message. Avoid sharing private login details or secret keys.
Check the finished page and SEO settings
Verify source attribution and links, review dates, images or video only when available, mobile sizing, and whether your consent manager affects optional analytics. Basic view counts are always sent so your monthly allowance can be tracked. Turn on extra analytics only when you have connected your site's consent signal. If you use conversion events, tie them to a real success action.
VerifiedWidget can publish business identity JSON-LD. If your SEO plugin already adds business information, keep names, addresses, and phone numbers consistent and avoid duplicate or conflicting identities. PHP snippets do not execute in a Custom HTML block; use an approved server-side integration if you need PHP. Back up the site before editing theme code. A business's own reviews on its own site do not qualify for Google review stars, even through a widget. Read our review schema guide and Google's review rules.
WordPress.com, block themes and reusing the widget
This guide works on a self-hosted WordPress site where your role can add scripts. WordPress.com is different. Its Custom HTML block help says tags such as script and iframe need a paid plan with hosting features activated, and that a paid plan alone is not enough. On the free WordPress.com plan the script will be removed. If the Custom HTML block strips your script on a self-hosted site, the problem is usually your user role or a security setting, not the widget.
On a block theme, go to Appearance > Editor to add the widget to a template or template part, such as the footer. To use the same review section on several pages, add it inside a block pattern and mark the pattern as synced. Then a later change updates every page that uses it. Do this only for the same widget; for a different set of reviews on a service page, build a second widget. If your site is a shop, see the WooCommerce guide.
Frequently asked questions
How do I embed Google reviews on WordPress?
Add a Custom HTML block where you want the reviews, paste your VerifiedWidget script, update the page, then view it signed out to confirm it loads.
Is there a free Google reviews widget for WordPress?
Yes. VerifiedWidget's Free plan gives one widget with up to 30 reviews and no plugin to install. Free widgets show a small VerifiedWidget badge, which paid plans can remove.
Does this work on WordPress.com?
Only with a paid WordPress.com plan that has hosting features activated. WordPress.com says script tags in a Custom HTML block need both, so the free plan cannot run the widget.
How do I add a Google reviews badge to every WordPress page?
Paste the one-line badge script into a site-wide footer box, such as the one in the WPCode plugin, or into a footer template part on a block theme. The badge floats in a corner, so it does not need a spot on the page.
Do I need a WordPress plugin to show Google reviews?
No. If your site allows custom scripts, you can paste the VerifiedWidget embed into a Custom HTML block or supported builder module.
Why does the widget show in the editor but not on the public page?
Check whether the script survived saving, clear caches, and inspect blocked requests. Editor previews and published pages can run scripts differently.
Can I add the widget in Elementor or Divi?
Yes. Use Elementor's HTML widget or Divi's Code module, then verify the published page.
Why did WordPress remove my script tag?
Your WordPress role or hosting and security settings may restrict scripts. Ask an administrator with the right permissions to review it.
Can I show a review badge on every page?
Yes. The badge floats in a screen corner (bottom-right by default), so paste it once in a footer or widget area that loads on every page. Check mobile layout and monthly view usage.
Will Google show stars for these reviews in search results?
No. Google's self-serving review rule excludes a business's own reviews on its own site from review star rich results.
Add your Google reviews to WordPress
Create a free widget, copy its embed, and test it on a published page.