Steps to embed in WordPress
- Generate the embed code
Paste your form URL into the generator below and pick the layout — Responsive iframe works for most pages.
- Open the WordPress editor
Edit the page or post where you want the form to appear.
- Add a Custom HTML block
Click the + icon, search for 'Custom HTML', and add the block.
- Paste the snippet
Paste the generated code into the block. Click 'Preview' to verify the form renders.
- Publish or update
Save the page. The form is now live on your WordPress site.
WordPress embed code generator
Paste your form URL — works with LemForms, Typeform, Tally, Jotform, Google Forms, Paperform, or any embeddable form. The WordPress Custom HTML block accepts the snippet below.
Aspect-ratio wrapper, scales to width
<div style="position:relative;padding-top:62.5%;width:100%;">
<iframe
src="https://lemforms.com/f/your-form-id"
style="position:absolute;inset:0;width:100%;height:100%;border:0;"
loading="lazy"
title="Embedded form"
></iframe>
</div>Live preview
This is the exact iframe your visitors will see. If it looks wrong here, it will look wrong on your site.
Where to paste it, per platform
Block editor → add a Custom HTML block, paste, then Preview.
Gotcha: Classic editor strips iframes in Visual mode — switch to the Text tab first.
Full WordPress embed guide →Add an Embed element (Add panel → Components → Embed) and paste.
Gotcha: Embeds don't render in the Designer canvas — use Preview or publish to see the form.
Full Webflow embed guide →Insert → Utility → Embed, choose HTML, paste the snippet.
Gotcha: Set the frame to Fixed height, or the iframe collapses to 0px.
Full Framer embed guide →Add → Embed Code → Embed HTML → Code, paste, then resize the box.
Gotcha: Wix wraps embeds in a fixed box — drag it taller than the form or it scrolls internally.
Full Wix embed guide →Add a Code block, set it to HTML, paste, and untick 'Display Source'.
Gotcha: Code blocks are unavailable on the Personal plan — use an embed block instead.
Full Squarespace embed guide →Theme editor → add a Custom Liquid section and paste the snippet.
Gotcha: Escape any Liquid-looking braces; Shopify tries to parse `{{ }}` inside Custom Liquid.
Full Shopify embed guide →Type /embed, paste the form URL directly (Notion builds the iframe).
Gotcha: Notion ignores raw HTML — use the plain form URL, not the snippet.
Full Notion embed guide →Add → Embed → Code, paste, set Style to Inline.
Gotcha: Carrd doesn't auto-size iframes — set an explicit height or the form gets clipped.
Full Carrd embed guide →Frequently asked questions
Do I need a plugin?
No. Iframes are allowed natively in the Custom HTML block — no plugin, no shortcode, no extra script.
Does this work with Elementor or Divi?
Yes. Both page builders include an HTML widget that accepts the same iframe snippet.
Will it work on mobile?
Use the Responsive variant — it scales to any container width using an aspect-ratio wrapper.
How do I embed a form in WordPress?
Add a Custom HTML block to the page, paste the generated iframe snippet, then update the page. That's the whole job — no plugin and no shortcode.
Can I embed a Google Form in WordPress instead?
Yes, the same Custom HTML block accepts a Google Forms iframe — paste the Google URL into the generator above.
Build the form you'll embed in WordPress
LemForms gives you the embed URL — plus conditional logic, calculations, file uploads, webhooks, and a real submissions dashboard. Free to start.
Try LemForms freeEmbed in other platforms
- Embed a form in WebflowPaste any form URL and get the Webflow embed snippet for the Embed element. Works in the Designer, Editor, and any CMS template.
- Embed a form in FramerPaste any form URL and get the Framer embed snippet for the Embed component. Works on every Framer breakpoint.
- Embed a form in WixPaste any form URL and get the Wix iframe embed snippet for the HTML Embed widget. No premium plan required.
- Embed a form in SquarespacePaste any form URL and get the Squarespace embed snippet for the Code block. Works on all Squarespace plans.
- Embed a form in ShopifyPaste any form URL and get the Shopify embed snippet for Custom Liquid or page content. Works on every Shopify plan.
- Embed a form in GhostPaste any form URL and get the Ghost embed snippet for the HTML card. Works in posts, pages, and newsletters.