0
HomeEmbedWordPress
WordPress · Free · No signup · No plugin

Embed a form in WordPress

WordPress accepts iframes anywhere HTML is allowed. Generate the snippet below, then drop it into a Custom HTML block — no plugin, no shortcode, no signup.

Steps to embed in WordPress

  1. 1
    Generate the embed code

    Paste your form URL into the generator below and pick the layout — Responsive iframe works for most pages.

  2. 2
    Open the WordPress editor

    Edit the page or post where you want the form to appear.

  3. 3
    Add a Custom HTML block

    Click the + icon, search for 'Custom HTML', and add the block.

  4. 4
    Paste the snippet

    Paste the generated code into the block. Click 'Preview' to verify the form renders.

  5. 5
    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>
Paste the snippet into the HTML of any platform — WordPress (Custom HTML block), Webflow (Embed), Framer (Embed), Wix (HTML iframe), Squarespace (Code block), Shopify (Custom Liquid), Notion (Embed), Ghost (HTML card), Carrd (Embed), or plain HTML.

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

WordPress

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 →
Webflow

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 →
Framer

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 →
Wix

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 →
Squarespace

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 →
Shopify

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 →
Notion

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 →
Carrd

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 free

Embed in other platforms

  • Embed a form in Webflow
    Paste 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 Framer
    Paste any form URL and get the Framer embed snippet for the Embed component. Works on every Framer breakpoint.
  • Embed a form in Wix
    Paste any form URL and get the Wix iframe embed snippet for the HTML Embed widget. No premium plan required.
  • Embed a form in Squarespace
    Paste any form URL and get the Squarespace embed snippet for the Code block. Works on all Squarespace plans.
  • Embed a form in Shopify
    Paste any form URL and get the Shopify embed snippet for Custom Liquid or page content. Works on every Shopify plan.
  • Embed a form in Ghost
    Paste any form URL and get the Ghost embed snippet for the HTML card. Works in posts, pages, and newsletters.