Skip to main content

WordPress · 5 min read

How to add Google reviews to WordPress

WordPress has plenty of review plugins. It also has a Custom HTML block, which does the same job with nothing to install, update or debug after the next core release. This guide covers Gutenberg, the Classic Editor, widget areas, block themes and every major page builder.

Last reviewed by the Reviews Widget product team.

Plugin or no plugin?

A plugin adds PHP that runs on every request, another update to track and another candidate when something breaks. A script tag in a Custom HTML block adds none of that — the fetching and caching happen off your host, and the only thing on your site is one line of HTML.

WordPress review plugin compared with a script embed
Review pluginScript embed
InstallUpload, activate, configurePaste one line
Runs on your hostYes — PHP and database queriesNo
Breaks on core or PHP updatesPossibleNo
Design changesPlugin settings screenDashboard, no site edit needed
Portable to another CMSNoYes — same tag anywhere

Step-by-step walkthrough

Skip the reading — build your widget now

Free plan, no credit card. Your reviews are embedded before you finish this guide.

Create the widget, attach your Google Business Profile by searching your business name, style it to your theme, copy the script tag, paste it into a Custom HTML block, then update and check the published page with your cache cleared.

  1. 1

    Create your free Reviews Widget

    Sign up, search your business name to attach your Google Business Profile, and let the first fetch pull in your reviews. No API key and no Google Cloud project.

  2. 2

    Style the widget for your theme

    Pick grid, masonry, list, carousel, a scrolling marquee, review popups or a floating star badge, then match your theme's colours, corner radius and font scale in the live preview at desktop, tablet and mobile widths.

  3. 3

    Copy the one-line embed snippet

    Open the Embed tab and copy the script tag. It is under 200 bytes and loads asynchronously, so it stays out of the critical rendering path.

  4. 4

    Open the WordPress editor

    In wp-admin, open the page, post or template where the reviews belong — the homepage, a testimonials page, a service page or a widget area.

  5. 5

    Paste it into a Custom HTML block

    In Gutenberg, add a Custom HTML block and paste the tag. In the Classic Editor switch to the Text tab first, or WordPress will strip the script. For sidebars and footers, use a Custom HTML widget under Appearance then Widgets.

  6. 6

    Update and check the live page

    Save, then view the published page rather than the editor preview. Purge any caching plugin, confirm the reviews render, then run the URL through Google's Rich Results Test to see the JSON-LD parse.

Where to paste it in WordPress

Where the embed snippet goes for each WordPress editing surface
Editing surfaceExact locationWatch out for
Gutenberg block editorAdd block, search 'Custom HTML'Preview tab may not run the script — publish first
Classic EditorText tab, not VisualVisual tab strips script tags on save
Sidebar or footerAppearance → Widgets → Custom HTMLNarrow columns suit list or badge layouts
Block theme templatesSite Editor → template part → Custom HTML blockAppears sitewide, so place it deliberately
Theme filesDirectly in a template PHP fileUse a child theme or it is lost on update

Page builders and block themes

The HTML module in each major WordPress page builder
BuilderModule to useTier required
ElementorHTML widgetFree
DiviCode moduleIncluded
WPBakeryRaw HTML elementIncluded
Beaver BuilderHTML moduleIncluded
BricksCode elementIncluded
Full-site editing themesCustom HTML block in a template partCore

Elementor has its own walkthrough with the exact panel steps: embed Google reviews in Elementor.

Performance and caching

Because the script is asynchronous and served from our infrastructure, WordPress caching plugins cache the page around it rather than the reviews inside it. That means a cached page still renders current reviews — but it also means you must purge the cache after changing where the snippet sits.

If you run an optimisation plugin, exclude the snippet from any "delay JavaScript until interaction" or aggressive script-combining setting. Those features postpone third-party scripts until a user interacts, which leaves an empty space where the reviews should be for anyone who scrolls without clicking.

Troubleshooting

Common WordPress embed problems and their fixes
SymptomLikely causeFix
Snippet vanishes after savingPasted into Visual tab or a paragraph blockUse the Text tab or a Custom HTML block
Reviews show for admins onlyPage cache serving an older copy to visitorsPurge the caching plugin and CDN
Empty gap where reviews should be'Delay JavaScript' optimisation settingExclude the snippet from delay and combine rules
Works on one page, not anotherSnippet only pasted on one pageAdd the block to each page, or a template part
Widget too wide or clippedTheme container has a fixed height or overflow hiddenLet the wrapper size to its content
Nothing renders in the block previewEditor sandboxes scriptsView the published page instead

Sources & further reading

Frequently asked questions

How do I add Google reviews to WordPress without a plugin?+

Paste a single script tag into a Custom HTML block on the page where you want reviews. No plugin means nothing to install, nothing to keep updated and no PHP-level conflict with your theme or other plugins — a common source of WordPress review-plugin problems.

Where exactly do I paste the code in WordPress?+

In the block editor, add a Custom HTML block. In the Classic Editor, switch from Visual to the Text tab before pasting, because the Visual tab strips script tags on save. For sidebars and footers, use the Custom HTML widget under Appearance then Widgets.

Will it work with Elementor, Divi, WPBakery or Beaver Builder?+

Yes. Every major builder ships an HTML or raw-code module — Elementor's HTML widget, Divi's Code module, WPBakery's Raw HTML, Beaver Builder's HTML module. Drop the snippet in and the widget renders inside your builder layout.

Does the embed slow down my WordPress site?+

No. The script is around 5 KB gzipped and loads asynchronously, so it never blocks Largest Contentful Paint. Fetching and caching happen on our infrastructure, not on your host, so it adds no PHP execution or database queries to your page loads.

Does it work on WordPress.com as well as self-hosted WordPress?+

It works wherever you can add custom HTML. Self-hosted WordPress always allows it; on WordPress.com, custom code blocks require a plan that permits them, so check your plan before starting.

Will WordPress reviews give me stars in Google search?+

Generally no. Google treats reviews about your own business displayed on your own site as self-serving and ineligible for review rich results, regardless of the plugin or widget used. Star ratings for your business in Search come from your Google Business Profile.

Ready to add Google reviews to WordPress?

One Custom HTML block. No plugin. Free to start.

All how-to guides