Add a Voicemail to Your Website
Get the embed code for a voice form and add it to WordPress, Squarespace, Shopify, Webflow, Carrd, Wix or Google Sites, so visitors can leave a voice message.
A voice form on your website works as a voicemail. Visitors record a message in the browser, and you get the recording and a transcript in your dashboard, plus an email when new messages arrive.
Get the embed code
- Create a voice form, or open one under Voice forms. For a voicemail, one question is enough, like "Leave us a voice message". Add a name or email field to reply.
- Under Public link, click Turn on public link.
- Next to Website widget, click Get embed code.
- Choose a Style:
- Inline puts the form inside your page. Choose a Width: Narrow, Standard or Full width.
- Floating button adds a button in a corner of the page that opens the form in a panel. Set the Button text and the Corner.
- Popup adds a button where you paste the code. The form opens in a window over the page. Set the Button text.
- Under Your websites, add each address the voicemail will show on, one per line (for example
https://yourshop.com), and click Save websites. - Click Copy next to Embed code.
The button takes your form's accent color, from the form's settings. On phones, the panel and the window open full screen.
The Inline code is an iframe plus a short script that sets the form's height. If your website builder removes the script, the form still works at a fixed height of 560 pixels.
The Floating button and Popup codes load a script from sendmyvoice.com, so they need a builder that keeps scripts. If yours removes them, use Inline. To open the popup from a button or link of your own, add the data-smv-form attribute from the Popup code to it.
The voicemail shows only on the websites you saved. On any other site it shows an error, so add a new domain before you paste the code there.
WordPress
On a self-hosted WordPress site:
- Open the page or post and click + (Block Inserter).
- Search for Custom HTML and add the block.
- Paste the embed code and click Update or Publish.
You need the Administrator or Editor role. WordPress removes iframes and scripts that other roles paste.
On WordPress.com, the Custom HTML block keeps iframes only on a paid plan with hosting features turned on. On the free plan they're removed when you save.
Squarespace
- Edit the page and click Add block.
- Choose Code, click the pencil and set Mode to HTML.
- Paste the embed code and save.
Code blocks with iframes need the Core plan or higher. While you're logged in, Squarespace may not run the code in the editor. Check the page in a logged-out or private window.
Shopify
- Go to Online Store > Themes and click Customize.
- Open the page where the voicemail should go and click Add section.
- Choose Custom Liquid, paste the embed code and click Save.
Custom Liquid is part of Online Store 2.0 themes. The rich text editor on a page removes scripts when you save, so the form there stays at a fixed height. Use a Custom Liquid section instead.
Webflow
- In the Designer, add a Code Embed element where the voicemail should go.
- Paste the embed code and click Save & Close.
- Publish the site.
The Code Embed element needs a paid site plan or a paid Workspace plan. Check the form on the published site or in Preview.
Carrd
- Click + and add an Embed element.
- Set Type to Code and Style to Inline.
- Paste the embed code and publish.
Embeds need Carrd Pro Standard or higher, and they show only on the published site.
Wix
Wix puts embed code inside a frame of its own, which can block the microphone. Try this:
- In the Wix Editor, click Add Elements > Embed Code > Embed HTML and choose Website Address. In Wix Studio, add Embed a site.
- Paste your form's public link, from Public link in your dashboard.
- Publish, then record a test message on the live site from a phone and a computer.
If recording doesn't start, add a button with the text "Leave us a voice message" that links to your form's public link. Visitors record on the form's own page.
Google Sites
Google Sites also wraps embed code in a frame of its own, and the microphone may not work inside it. Add a button that links to your form's public link instead: Insert > Button, then paste the link.
Other website builders
Any builder with an HTML, code or embed block works the same way: add the block where the voicemail should go, paste the embed code and publish. Record a test message on the live site, since many builders don't run embed code in their editor.
Show the floating button on every page
Paste the Floating button code once into your site's footer code:
- WordPress: in the Site Editor, add a Custom HTML block to the Footer template part. On classic themes, use a header and footer code plugin.
- Squarespace: open Code Injection in your site settings and paste the code under Footer. Code Injection needs the Core plan or higher.
- Shopify: in Customize, click Add section in the footer, choose Custom Liquid and paste the code.
- Webflow: go to Site settings > Custom code, paste the code under Footer code and publish.
- Carrd: add an Embed element, set Type to Code and Style to Hidden, and choose Body End.
- Wix: go to Settings > Custom Code, click Add Custom Code, choose All pages and Body - end. Custom Code needs a Premium plan and a connected domain.
To show the button on one page only, paste the code into that page, the same way as the Inline code.
Check your voicemail
- Open your site in a private window and record a short message.
- Your browser asks for the microphone the first time. Click Allow.
- The message appears in your dashboard under the form, with a transcript.
If the form shows an error, check that the site's exact address, including https:// and www if your site uses it, is saved under Your websites.