How to embed an interactive demo, step by step
-
Export the demo
In the editor, press Export and download the ZIP. It holds the demo page,
embed.jsand your screenshots. -
Put it online
Upload the ZIP to a web host. On Dplooy, drop it on the dashboard and choose ZIP to site. Note the address you get, such as
your-demo.dplooy.com. -
Copy the embed code
Back in the export dialog, type that address under Embed on your website and press Copy. The code now points at your demo.
-
Paste it into your page
Add an HTML or code block where the demo should appear and paste the two lines. The table below shows where that is in each site builder.
-
Publish and check it on a phone
Publish the page, open it, and click through the demo once on a computer and once on a phone.
The embed code
Two lines: a place for the demo, and the script that draws it there. Replace the address with your demo's.
<div data-demo-maker="https://your-demo.dplooy.com/"></div>
<script src="https://your-demo.dplooy.com/embed.js" async></script>
- The div is where the demo appears. It takes the full width of whatever it sits in — put it in a narrower column for a smaller demo.
- The script holds the demo and loads the screenshots from your demo's address.
asyncmeans it never slows your page down. - Several demos on one page work: paste each demo's two lines; each div shows the demo whose address it names.
- The demo draws inside its own sealed box (a shadow root), so your site's CSS can't restyle it and its styles can't leak out.
Where to paste it in WordPress, Webflow, Squarespace and more
| Platform | Where to paste the code | Good to know |
|---|---|---|
| WordPress | Add a Custom HTML block | Use Preview to see it; some hosted plans remove scripts |
| Webflow | Add a Code Embed element | Scripts run on the published site, not in the Designer |
| Squarespace | Add a Code Block | Scripts may need a higher plan |
| Wix | Add an Embed HTML element | Make the element tall enough for the demo |
| Framer | Add an Embed component set to HTML | Set the component's height to fit |
| Your own HTML | Anywhere inside <body> |
No setup needed |
No scripts allowed? Share a link instead
Some places don't run scripts at all — Notion pages, most email newsletters, many forums. Link to the demo's address instead, or put it behind a button such as "Try the demo". The demo page works on its own, with your title at the top.
If the embedded demo doesn't show
- Nothing appears. Open the demo's address on its own. If it doesn't load, the demo isn't online yet or the address in the code has a typo.
- It works on its own but not on your page. Your site builder removed the script. Look for a code block that allows scripts, or share a link.
- An old version shows. Browsers keep
embed.jsfor a while after you upload a new one; reload after an hour, or check in a private window.