Embedding on Your Website
Written By Team LoveBoard
Last updated 2 months ago
This guide covers how to install Loveboard embeds on your website, regardless of what platform you use.
The Embed Code
Every Loveboard embed uses a simple JavaScript snippet:
<script src="https://app.loveboard.io/public/widget.js" data-workspace="your-workspace-slug" data-embed="your-embed-slug"></script>Replace your-workspace-slug and your-embed-slug with your actual values (found in the embed editor).
How to Get the Embed Code
- Go to Embeds in the sidebar
- Click on the embed you want to install
- In the embed editor, click Get Embed Code or look for the code snippet
- Copy the entire
<script>tag
Installation by Platform
WordPress
Using the HTML Block:
- Edit the page where you want the embed
- Add an HTML block (also called "Custom HTML")
- Paste the embed code
- Save/publish the page
Using a Widget Area:
- Go to Appearance → Widgets
- Add a "Custom HTML" widget to your desired area
- Paste the embed code
- Save
Webflow
- Drag an Embed element onto your page
- Paste the embed code in the code editor
- Save and publish
Squarespace
- Edit your page
- Add a Code Block (available in the content blocks menu)
- Paste the embed code
- Toggle "Display Source" off
- Save
Wix
- Add an Embed HTML component (Add → Embed → Custom Embeds → Embed a Widget)
- Click "Enter Code"
- Paste the embed code
- Adjust the size of the component
- Save and publish
Shopify
- Go to Online Store → Themes → Edit Code
- Open the template file where you want the embed (e.g.,
product.liquid,page.liquid) - Paste the embed code at the desired location
- Save
Custom HTML Sites
Paste the embed code directly into your HTML file at the location where you want the testimonials to appear:
<body> <!-- Your page content --> <section class="testimonials"> <script src="https://app.loveboard.io/public/widget.js" data-workspace="acme" data-embed="homepage-wall" ></script> </section> <!-- More content --> How the Widget Works
- Loads asynchronously — It doesn't block your page from rendering
- Fetches testimonials — Pulls your approved testimonials from Loveboard's servers
- Renders the embed — Displays the configured layout (Wall of Love, Carousel, etc.)
- Auto-resizes — Adjusts its height to fit the content. No fixed height needed.
- Stays responsive — Adapts to any screen size (desktop, tablet, mobile)
- Lazy loads — Only loads when the visitor scrolls to it for optimal performance
Troubleshooting
Embed Not Showing
- Verify the embed code is pasted correctly (the full
<script>tag) - Check that
data-workspaceanddata-embedvalues are correct - Make sure the embed has approved testimonials to display
- Open your browser's developer console (F12) and check for JavaScript errors
Embed Shows Empty
- Go to your Loveboard dashboard and check that you have approved testimonials
- Verify the embed's filters (form, type, rating) aren't excluding all testimonials
- Check that the embed is connected to a form that has testimonials
Sizing Issues
- Don't set a fixed
heighton the embed container — the widget handles sizing automatically - If the embed appears too narrow, ensure the parent container has sufficient width
- For iframes, make sure auto-resizing scripts are allowed
Multiple Embeds on One Page
You can have multiple Loveboard embeds on the same page. Each embed works independently based on its data-embed attribute.