Installation guide
How to add Google reviews to Drupal
On Drupal, add the VerifiedWidget install code through a content block or a body field. Either one needs a text format that is allowed to keep scripts.
Updated November 2026
Quick answer
- Copy the install code from your widget's Embed dialog in VerifiedWidget.
- Go to Content → Blocks and add a content block, or open the page (node) that should show reviews.
- Set the Text format to one that allows scripts, click Source and paste the install code.
- For a block, go to Structure → Block layout, click Place block in a region and pick it. Clear caches and view the page logged out.
What you will paste, and which text format to use
The install code includes a script tag, so the text format you paste into decides whether Drupal keeps it.
Content block
- 1Content → Blocks
- 2Add content block
- 3Text format: Full HTML
- 4Source
<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>| Text format | Meant for | Keeps the install code? |
|---|---|---|
| Basic HTML | Everyday editors | No. Drupal says it filters out dangerous HTML tags, and scripts are removed. |
| Restricted HTML | Visitors you do not fully trust | No. It is stricter still. |
| Full HTML | Trusted administrators only | Yes, when pasted through the Source view. |
Read more in Drupal's text formats guide.
What you need
Administrator access, or permission to use a text format that keeps scripts. Drupal filters HTML by default and advises limiting Full HTML to trusted users.
Steps for Drupal
Block or node?
A block in a footer region shows reviews across the site; the body of one node suits a single landing page. Since Drupal 10.1, what used to be a “custom block” is called a content block. Its library moved from Structure to Content → Blocks (Drupal change record). Save the widget and copy its install code either way.
Choose the text format
In the body field switch Text format (the setting that decides which HTML Drupal keeps) to one that permits scripts, such as Full HTML. Do this only if your site has it and your account may use it. Do not loosen a format that anonymous or untrusted users can use.
Paste through Source
If the editor has a Source button, click it and paste the install code there so the editor does not rewrite it. Save. Early CKEditor 5 releases in Drupal dropped script tags even in Full HTML; Drupal marked that fixed in 2022. If yours still drops it, update Drupal core first.
Place the block and test
On Structure → Block layout, pick the tab for your front-end theme, click Place block next to a region and choose your block. Under its Pages visibility setting, list the paths that should show reviews. Clear Drupal's caches if you see old content, and test on mobile.
Drupal widget not showing: problems and fixes
- The script is gone after saving. The text format's filters removed it. Use a format that allows it, and the Source view.
- The script shows as text. A rich text editor encoded the tags. Edit in Source mode.
- Region names differ per theme. Check the block layout tab for your front-end theme, not the admin theme.
- Can't find Custom block library. On Drupal 10.1 and later it is Content → Blocks.
- Old content keeps appearing. Go to Configuration → Development → Performance, click Clear all caches, clear any CDN, then reload in a private window. Logged-in administrators can see different cached content from visitors.
- Block placed but not visible. Check its Pages visibility setting and the region name in your active theme. On a multilingual site, place the block for each language that needs reviews.
- Domain allowlist. If you turned on the allowlist in VerifiedWidget, add your live domain and any staging domain.
A security note for site owners
A text format that keeps scripts also lets whoever can use it publish scripts. Restrict that format to trusted administrators, and let editors work in a stricter format. A footer-region block with a script is a reasonable pattern: only administrators can change the block, and editors can still edit page content safely. Put the widget after a section that explains your service so it supports a decision.
Drupal Google reviews: module or script?
People searching “Drupal Google reviews” often look for a contributed module. A module can mean extra updates, API keys and compatibility checks with each Drupal release. With VerifiedWidget you only paste one short block of install code into a content block, so there is nothing to install or keep updated on the Drupal side. Sync, layouts and themes are handled in the VerifiedWidget dashboard.
This guide covers Google reviews of your business from Google Maps. It is not about app ratings from Google Play, which are a separate thing. To compare layouts first, see the grid and carousel pages.
Which review layout works best on Drupal
Drupal themes differ a lot, so match the layout to the region. A wide content region suits a grid or masonry layout. A sidebar region is narrow, so a list fits better there. A footer region works well with the footer badge (Starter plan or higher), which shows your score, stars and review count on dark or light backgrounds. Grid, masonry and list are on the Free plan. Many Drupal themes move sidebars below the content on phones, so check the live page on a real phone.
If you want one page that holds all your reviews, look at the full reviews page layout (Starter plan or higher). It adds a score summary, star filters, sorting and a Load more button. Put it in the body of a dedicated node, such as a page at /reviews.
For a badge on every page, put a floating rating badge (Free plan) in a content block, place it in a region every page shares, such as the footer, and leave its page visibility empty. It floats in a corner wherever the block sits. The script loads in the background, so it works alongside Drupal's page cache.
Show reviews on a specific page or section
Drupal gives you two ways to limit where reviews appear. The first is the body field of one node, which only shows on that page. The second is a block with its Pages visibility setting filled in. List each path on its own line, such as /contact or /services. The block then shows only on those paths, in the region you chose.
Want each page to carry its own reviews? Create a separate widget for each, filter it in the dashboard, and give each widget's install code its own block. More than one widget needs a paid plan. Starter allows 3 and Pro allows unlimited.
Where to place reviews on a Drupal site
On a business site, the home page and the contact page are the best first spots. Put reviews after the section that explains your service, and before the main contact prompt. On service pages, a short list near the booking or quote button helps visitors who arrive from search. Avoid adding the same large widget to both the sidebar and the footer. One clear review section per page is easier to read.
Frequently asked questions
Is there a Drupal module for Google reviews?
You do not need one. Paste the VerifiedWidget install code into a content block or a body field set to a script-friendly text format.
Can I put reviews in a Drupal footer?
Yes. Place a content block with the install code in your theme's footer region under Structure → Block layout.
Should I use a block or a page body?
Use a content block in a footer region for site-wide reviews, or the body field of one page for a single landing page.
Can editors without Full HTML add the widget?
Not safely. Have an administrator put the install code in a content block, so editors can keep a stricter text format.
Is Full HTML safe?
Only for trusted users. Drupal documents why it should be limited.
Where is the custom block library?
Since Drupal 10.1 it is called content blocks and lives under Content → Blocks.
Why is my script gone?
The text format's filters removed it.
Will Drupal caching delay the widget?
Page caches can show an older page until cleared.
Do new Google reviews need a cache clear?
No. The widget fetches reviews when a visitor opens the page. Clear caches only after you change the block or page that holds the install code.
Can I show reviews only on certain Drupal pages?
Yes. Fill in the block's Pages visibility setting with the paths that should show reviews, or paste the install code into one node's body field.
Which layout fits a Drupal sidebar?
A list layout suits a narrow sidebar. Check it on a phone, since many themes move sidebars below the main content.
Add your Google reviews to Drupal
Create a free widget, copy its embed, and test it on your published page.