Limited spots

Lock in Pro at $19 $9/month before the early-bird spots are gone.

Claim early bird
Blog

How to add testimonials to a WordPress site

· 7 min read

To add testimonials to WordPress, copy the embed code from your testimonial tool, open the page in the editor, add a Custom HTML block where you want the testimonials, paste the code and click Update. In Elementor, use the HTML widget instead. It takes about two minutes, and the testimonials update on their own when you approve new ones.

The other way is a testimonial plugin, where you type each testimonial into WordPress by hand. That works for a handful of quotes. It gets slow when customers keep sending new ones. Below are both options, the steps for each editor, and what to do when the testimonials don't show up.

Plugin or embed code?

There are two ways to get testimonials onto a WordPress site.

A WordPress testimonial plugin. You install a plugin, then copy and paste each testimonial into it yourself. The testimonials live in your WordPress database.

  • Good when you have a few quotes that rarely change.
  • You still have to collect the testimonials somewhere else, usually by email, and copy them over.
  • Every new testimonial means logging in, pasting, adding a photo and publishing.
  • More plugins mean more updates to keep up with.

An embed code from a testimonial tool. Customers send testimonials through a form. You approve the ones you like, and they show up on your site through a small piece of code.

  • Collecting and showing happen in one place, so nothing gets copied by hand.
  • New testimonials appear on every page that shows the widget, without editing WordPress.
  • Works the same if you later move from WordPress to another builder.
  • No plugin to install or update.

If you get new testimonials every month, the embed code saves you time. The rest of this post uses that approach.

Step 1: Get your embed code

In Testimoon, create a testimonial widget, pick the testimonials and the layout, and click Embed. You get two lines of code, something like:

<div id="testimoon-widget-your-widget-id"></div>
<script id="testimoon-embed-js" src="https://testimoon.com/embed.js" async></script>

Copy it. The first line marks where the testimonials appear. The second line loads them. Keep both together.

Step 2: Paste it into WordPress

Pick the section that matches how you edit your site.

Block editor (Gutenberg)

This is the default editor in WordPress.

  1. Open the page or post and click Edit.
  2. Click the + button where you want the testimonials.
  3. Search for Custom HTML and add the block.
  4. Paste the embed code into the block.
  5. Click Preview to check it, then Update or Publish.

The editor itself may only show the code, not the testimonials. That's normal. Check the preview or the live page.

Full site editor (block themes)

If your theme uses the site editor, you can put testimonials in a template, so they appear on every page that uses it, like a footer or a single product layout.

  1. Go to Appearance → Editor.
  2. Open the template or template part, for example Footer.
  3. Add a Custom HTML block and paste the code.
  4. Click Save.

Elementor

  1. Open the page with Edit with Elementor.
  2. Search the widgets panel for HTML.
  3. Drag the HTML widget into the section where you want the testimonials.
  4. Paste the embed code into the HTML code box.
  5. Click Update.

Elementor's own testimonial widget is a different thing. It shows one quote you type in by hand. Use the plain HTML widget for embed code.

Divi

  1. Open the page with the Divi Builder.
  2. Add a new module and choose Code.
  3. Paste the embed code and save the module.
  4. Save the page.

Beaver Builder and other page builders

Most page builders have a module called HTML, Code or Embed. Add it where you want the testimonials and paste the code. The steps are the same as above.

Classic editor

  1. Open the page and switch from Visual to the Text tab.
  2. Paste the code where you want the testimonials.
  3. Click Update.

Don't switch back to Visual before saving. The visual editor can remove the script line.

Sidebar or footer widget area

Older themes have widget areas in the sidebar or footer.

  1. Go to Appearance → Widgets.
  2. Add a Custom HTML block to the sidebar or footer.
  3. Paste the code and click Update.

A narrow sidebar suits a vertical layout. A vertical scroll or a short list fits better there than a wide grid.

Which layout to use where

The same widget code works anywhere, so the choice is about what fits the page.

  • Homepage, under the main headline: a badge with stars and review count, or a marquee strip of short quotes.
  • A full testimonials page: a grid, often called a "wall of love".
  • Service or product pages: a carousel or a single testimonial about that exact service.
  • Long sales pages: a large pull quote between sections.
  • WooCommerce cart or checkout: a quiet one-line strip, so it doesn't pull attention from the pay button.

You can make several widgets and use a different one on each page. For more on placement, see where to put testimonials on your website.

If the testimonials don't show up

Most problems have one of these causes.

WordPress removed the script. Self-hosted WordPress only lets administrators save script tags. If you're an editor or author, the script line is stripped when you save. Ask an admin to paste the code, or to give your account admin rights for that page.

You're on WordPress.com. WordPress.com removes scripts on its lower plans. You need a plan that allows plugins and custom code. Self-hosted WordPress (from wordpress.org) doesn't have this limit.

A caching or speed plugin is delaying it. Plugins like WP Rocket, LiteSpeed Cache or Autoptimize can delay or combine scripts. Clear the cache first. If it still doesn't load, add embed.js to the plugin's list of scripts not to delay or combine.

The visual editor changed the code. In the classic editor, switching to the Visual tab can break the code. Paste it again in the Text tab and save without switching.

The widget is empty. Check that the widget has approved testimonials in it. An empty widget shows nothing.

Only one of the two lines got pasted. The div and the script belong together. If you put several widgets on one page, each needs its own div. The script line can stay once.

Other website builders

The same embed code works outside WordPress too. The step is always "find the HTML or code block, paste the code".

  • Shopify: In Online Store → Themes → Customize, add a Custom Liquid section to the page and paste the code.
  • Squarespace: Add a Code block to the page. Squarespace allows scripts in code blocks only on some plans.
  • Wix: Add Embed Code → Embed HTML, paste the code, and drag the box to the height you need.
  • Webflow and Framer: Use the Embed or Code element.

How Testimoon helps

Testimoon collects testimonials with a simple form you send to customers. You approve the good ones, pick a layout, and paste two lines of code into WordPress once. After that, new testimonials appear on your site without logging in to WordPress.

The grid and badge widgets are on the Free plan. Carousel, marquee and the other layouts are on Pro.

FAQ

Do I need a plugin to add testimonials to WordPress?

No. You can paste an embed code into a Custom HTML block, which is built into WordPress. A plugin is only needed if you want to store and type in the testimonials inside WordPress yourself.

Will the widget slow down my WordPress site?

The script loads with async, so the rest of the page doesn't wait for it. The testimonials appear a moment after the page loads.

Can I show testimonials on every page at once?

Yes. Put the code in a template, the footer or a sidebar widget area. Every page that uses that template shows the testimonials.

Can I add testimonials to WooCommerce product pages?

Yes. Edit the single product template in the site editor, or add the code to the product description. To show different quotes for different products, make one widget per product.

Is it bad for SEO that the testimonials load with a script?

Testimonials help visitors decide. That's their main job, and a script doesn't change it. If you want a few quotes to be part of the page text for search engines, also write one or two of your best quotes directly into the page.

Free to start

Your best marketing is already written

Your customers just need to be asked. Create a free form and get their words on your site.

Get started free
  • No credit card
  • Ready in under a minute
  • Unlimited testimonials