Docs / Show on your site
Embed a widget
Copy a widget's embed code and paste it into WordPress, Shopify, Webflow or any other site.
Every widget has its own embed code: two lines of HTML that work on any site that accepts HTML.
Copy the code
Open the widget and press the Embed code button at the top of the editor. Copy the code. It looks like this:
<div id="testimoon-widget-your-widget-id"></div>
<script id="testimoon-embed-js" src="https://testimoon.com/embed.js" async></script>
The div marks where the widget appears. The script loads it and resizes it to fit.
Paste it into your site
Paste both lines where the testimonials should appear. Look for a block called HTML, Custom code or Embed:
- WordPress: a Custom HTML block. Full guide: How to add testimonials to WordPress.
- Shopify: a Custom Liquid section in the theme editor.
- Webflow: an Embed element.
- Framer: an Embed component, set to HTML.
- Squarespace: a Code block.
- Wix: Embed code, then Embed HTML.
- Plain HTML: anywhere in the page body.
Several widgets on one page
Paste the div of each widget where you want it. The script only needs to be on the page once, but having it twice does no harm.
If the widget doesn't show
- Check that both lines were pasted, not just the
div. - Make sure the widget has testimonials selected, and that they're approved.
- Some builders only run scripts on the published site, not in the editor preview. Publish and check the live page.
- On Free, only Grid and Badge widgets are available. Other types need Pro.