---
title: "How to Embed a Form in Webflow, WordPress and Shopify — Shaheer Malik"
description: "Embed a form in Webflow, WordPress or Shopify step by step: where to paste the snippet, which plan you need, and why embeds disappear."
url: https://www.shaheermalik.com/blog/embed-form-webflow-wordpress-shopify
language: en
format: agent view of this page (the same content as the page, as plain text)
updated: 2026-11-16
---

[← All posts](https://www.shaheermalik.com/blog)

[Forms](https://www.shaheermalik.com/blog/category/forms)

# How to Embed a Form in Webflow, WordPress and Shopify

Where to paste a form snippet on each platform, which plans allow it, the permission rules that strip scripts, and the four embed styles to choose from.

Image: Shaheer Malik

Shaheer Malik

Framer Designer & Developer

October 2, 2026 6 min read

Image: How to Embed a Form in Webflow, WordPress and Shopify

Quick answer

Copy your form's embed snippet and paste it into a Code Embed element in Webflow, a Custom HTML block in WordPress, or a Custom Liquid section in Shopify. Webflow needs a paid plan, WordPress.com needs a plugin-enabled plan, and Shopify depends on your theme.

**To embed a form on Webflow, WordPress or Shopify, copy your form's embed snippet and paste it into the platform's code block: a Code Embed element in Webflow, a Custom HTML block in WordPress, or a Custom Liquid section in Shopify. Each one has a catch: Webflow needs a paid plan, WordPress.com needs a plugin-enabled plan, and Shopify depends on your theme.**

_I make [Forms](https://formsai.dev/), the form builder whose snippet I use below, and I build sites on all three platforms for clients. The steps work for any form tool that gives you an HTML snippet; the platform rules come from each platform's own help pages, checked on 2 October 2026._

Image: Four browser sketches: a form inline in the page, a popup over a dimmed page, a slider from the right and a Feedback tab on the edge

Illustration by Shaheer Malik of the four embed styles in Forms. Source: [Forms embeds](https://formsai.dev/features/embed-forms).

## What do you need before you embed a form?

Two things: the form's embed snippet, and a page where your platform lets you paste HTML. In Forms, open the form's Share tab, pick an embed style and copy the snippet. For an inline form it looks like this:

```
<div data-forms-embed="your-form" data-mode="inline" data-height="560"></div>
<script src="https://forms.shaheermalik.com/embed.js" async></script>
```

The first line marks where the form goes; the script turns it into the form. Change `data-mode` to `popup`, `slider` or `tab` for the other styles. Inline forms resize to fit each question, so you don't get a scroll bar inside your page.

If a platform strips scripts, there's a plain iFrame option in the same Share tab. It doesn't resize itself, so set a height that fits your longest question:

```
<iframe src="https://forms.shaheermalik.com/f/your-form" title="Form"
 style="width:100%;height:560px;border:0"
 allow="clipboard-write; camera; microphone; payment"></iframe>
```

Both are free: every embed style is on every Forms plan, including Free, which allows one active form and 100 responses a month.

## How do the three platforms compare?

| Platform | Where you paste the snippet | Plan needed | Watch out for |
| ----------------------- | ------------------------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| Webflow | A Code Embed element | A Core, Growth, Agency or Freelancer Workspace, or an active Site plan | 50,000 characters per embed; never paste html, head or body tags |
| WordPress (self-hosted) | A Custom HTML block | None | Users without the unfiltered\_html capability, such as Contributors, have scripts and iframes stripped |
| WordPress.com | A Custom HTML block | A plugin-enabled plan with hosting features activated | Free sites can't use script or iframe tags |
| Shopify | A Custom Liquid section in the theme editor | Any plan, if your theme offers the section | Not every theme has it; check your theme's documentation |

## How do I embed a form in Webflow?

Add a Code Embed element where you want the form, paste the snippet, then save and close. That's the whole job, according to Webflow's help article on the [custom code embed](https://help.webflow.com/hc/en-us/articles/33961332238611-Custom-code-embed):

1. Copy the snippet from your form's Share tab.
2. In the Webflow Designer, open the Add panel and drag a Code Embed element onto the canvas.
3. Paste the snippet and click Save & close.
4. Publish the site and test the form on the live page.

Image: Webflow Help Center article: Custom code embed

Screenshot of help.webflow.com, Custom code embed, taken 2 October 2026\. © Webflow. Source: [help.webflow.com, Custom code embed](https://help.webflow.com/hc/en-us/articles/33961332238611-Custom-code-embed).

Two rules from Webflow's article matter here. The Code Embed element is available if you have a Core, Growth, Agency or Freelancer Workspace, or your site has an active Site plan. And your code must not include `<html>`, `<body>` or `<head>` tags, or your layout will break. A form snippet never needs them.

Webflow also notes that its support team can't troubleshoot custom code, so if the form doesn't appear, check the live published page first, then the snippet.

## How do I embed a form in WordPress?

Use a Custom HTML block. In the block editor, type `/html` and press Enter, click Edit HTML, paste the snippet and press Update, as the WordPress.org guide to the [Custom HTML block](https://wordpress.org/documentation/article/custom-html/) describes. Publish or update the page and check the form.

Image: WordPress.org documentation: Custom HTML block

Screenshot of wordpress.org/documentation, Custom HTML, taken 2 October 2026\. © WordPress.org. Source: [wordpress.org/documentation, Custom HTML](https://wordpress.org/documentation/article/custom-html/).

The catch is permissions. The same guide explains that if your user role lacks the `unfiltered_html` capability, as a Contributor does, WordPress strips tags such as `<script>` and `<iframe>` when the post is saved. If the form vanishes after saving, ask an administrator to add it, or to paste it for you.

### On WordPress.com

Hosted WordPress.com sites have an extra rule. Its guide to [adding code](https://wordpress.com/support/code/) says `script`, `iframe` and similar tags only work on a plugin-enabled plan with hosting features activated; free sites can't use them. If you're on a plan without them, share the form as a link or a button that opens the form page instead.

## How do I embed a form in Shopify?

Add a Custom Liquid section in the theme editor, if your theme has one, and paste the snippet into it. Shopify's help centre, in [Extend your theme with apps](https://help.shopify.com/en/manual/online-store/themes/customizing-themes/apps), says that if your theme offers a Custom Liquid section, you might be able to add code there instead of editing your theme code directly.

1. In Shopify admin, go to Online Store > Themes and click Customize.
2. Open the page you want, such as your contact page, and add a section.
3. Choose Custom Liquid, paste the snippet and save.

Image: Shopify Help Center: Extend your theme with apps

Screenshot of help.shopify.com, Extend your theme with apps, taken 2 October 2026\. © Shopify. Source: [help.shopify.com, Extend your theme with apps](https://help.shopify.com/en/manual/online-store/themes/customizing-themes/apps).

If your theme has no Custom Liquid section, check your theme's documentation for where custom HTML can go before editing theme code.

## Which embed style should I use?

Match the style to how urgent the form is. Inline is best on a page whose whole job is the form, like a contact or quote page. A popup suits a button such as "Get a quote" on a busy page. A slider or side tab works for optional feedback that shouldn't interrupt anyone.

To open a popup from your own button rather than the default one, add this to any button or link and keep the script tag on the page:

```
<button data-forms-open="your-form">Get a quote</button>
```

Image: Forms embeds page: put your form anywhere on your site, one snippet, four styles

Screenshot of formsai.dev/features/embed-forms, taken 2 October 2026\. © Shaheer Malik. Source: [formsai.dev/features/embed-forms](https://formsai.dev/features/embed-forms).

## How can I track where form responses come from?

Use the page's link. The Forms embed script passes the page's query string to the form, so a visitor who lands on `yoursite.com/contact?utm_source=newsletter` carries `utm_source=newsletter` into the form. Add a hidden field with the same name and every response records its source, without asking anyone. The [conditional logic](https://formsai.dev/features/conditional-logic) rules can branch on hidden fields too.

## Why isn't my embedded form showing?

- **You're looking at the editor, not the live page.** Publish and check the real URL.
- **The script was stripped.** On WordPress, your role may lack `unfiltered_html`; on WordPress.com, your plan may not allow scripts. Try the iFrame version, or ask an admin.
- **Only half the snippet was pasted.** You need both the `div` and the `script` line.
- **The form isn't published.** Embeds show the live form, so publish it in Forms first.
- **A fixed-height iFrame cuts it off.** Raise the height, or switch to the script snippet, which resizes on its own.

Building on Framer instead? See [how to add a form to Framer](https://www.shaheermalik.com/blog/add-form-to-framer). And for what the form should ask, see my [form design best practices](https://www.shaheermalik.com/blog/form-design-best-practices).

_Last updated: 2 October 2026\. [Build your first form free](https://formsai.dev/), no card needed, or [talk to me](https://www.shaheermalik.com/contact) about your project._

FAQ

## Frequently asked questions

01 How do I embed a form on my website?

Copy the form tool's embed snippet and paste it into your site's HTML or embed block: a Code Embed element in Webflow, a Custom HTML block in WordPress, or a Custom Liquid section in Shopify. Then publish and check the live page.

02 Can I embed a form on the free Webflow plan?

Webflow's help centre says the Code Embed element is available with a Core, Growth, Agency or Freelancer Workspace, or on a site with an active Site plan. Without one, link to the form instead.

03 Why does WordPress remove my embed code?

WordPress strips tags such as script and iframe when the user saving the post lacks the unfiltered\_html capability, as Contributors do. On WordPress.com, these tags also need a plugin-enabled plan with hosting features activated.

04 How do I add custom HTML to Shopify?

If your theme offers a Custom Liquid section, add it in the theme editor and paste your code there, without editing theme files. Check your theme's documentation if you can't find one.

05 Should I use an iframe or a script embed?

Use the script embed when you can: it resizes to fit each question and supports popups, sliders and side tabs. Use a plain iframe when a platform strips scripts, and give it a height that fits your longest question.

06 Is embedding a form free?

In Forms, yes. Every embed style is on every plan, including the Free plan, which allows one active form and 100 responses a month.

[Form Builders](https://www.shaheermalik.com/blog/tag/form-builders) [Webflow](https://www.shaheermalik.com/blog/tag/webflow) [WordPress](https://www.shaheermalik.com/blog/tag/wordpress)

Share: [X / Twitter](https://twitter.com/intent/tweet?url=https%3A%2F%2Fwww.shaheermalik.com%2Fblog%2Fembed-form-webflow-wordpress-shopify&text=How%20to%20Embed%20a%20Form%20in%20Webflow%2C%20WordPress%20and%20Shopify) [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.shaheermalik.com%2Fblog%2Fembed-form-webflow-wordpress-shopify)

Want it done for you? I offer [website design](https://www.shaheermalik.com/services/website-design) on a fixed price, from $700\. [See pricing](https://www.shaheermalik.com/pricing).

On this page

- [What do you need before you embed a form?](#what-do-you-need-before-you-embed-a-form)
- [How do the three platforms compare?](#how-do-the-three-platforms-compare)
- [How do I embed a form in Webflow?](#how-do-i-embed-a-form-in-webflow)
- [How do I embed a form in WordPress?](#how-do-i-embed-a-form-in-wordpress)
- [On WordPress.com](#on-wordpresscom)
- [How do I embed a form in Shopify?](#how-do-i-embed-a-form-in-shopify)
- [Which embed style should I use?](#which-embed-style-should-i-use)
- [How can I track where form responses come from?](#how-can-i-track-where-form-responses-come-from)
- [Why isn't my embedded form showing?](#why-isnt-my-embedded-form-showing)

Keep reading

[Forms How to Write Survey Questions That Get Honest Answers One idea per question, neutral wording, balanced options and the right order: how to write survey questions people answer honestly, with Pew's research. October 4, 2026 5 min read](https://www.shaheermalik.com/blog/survey-questions-honest-answers)

[Forms How to Build a Quiz That Scores Answers A score variable, a rule per question and endings by total: how to build trivia, assessment and personality quizzes, with the exact rules from three templates. October 4, 2026 5 min read](https://www.shaheermalik.com/blog/scored-quiz)

[Forms Why Your Form Has a High Drop-Off Rate (and How to Find the Question) High drop-off usually comes from one question, not the form's length. How to find it with a drop-off view, the common causes, and how to fix them. October 4, 2026 5 min read](https://www.shaheermalik.com/blog/form-drop-off-rate)

## What you can do here
- Get a fixed-price proposal: https://www.shaheermalik.com/proposal/chat (describe the project in a sentence or two)
- Free website audit: https://www.shaheermalik.com/audit?site=example.com (replace example.com with the site; the score needs no email)
- Book a free scope call: https://www.shaheermalik.com/fixed-price-website#book
- Contact: https://www.shaheermalik.com/contact
- Prices and facts for the whole site: https://www.shaheermalik.com/llms.txt

## Structured data

```json
{
 "@context": "https://schema.org",
 "@type": "BlogPosting",
 "headline": "How to Embed a Form in Webflow, WordPress and Shopify",
 "description": "Embed a form in Webflow, WordPress or Shopify step by step: where to paste the snippet, which plan you need, and why embeds disappear.",
 "abstract": "Copy your form's embed snippet and paste it into a Code Embed element in Webflow, a Custom HTML block in WordPress, or a Custom Liquid section in Shopify. Webflow needs a paid plan, WordPress.com needs a plugin-enabled plan, and Shopify depends on your theme.",
 "image": [
  "/images/blog/forms/form-embed-styles-2026-10.webp"
 ],
 "datePublished": "2026-10-02T17:00:00.00+00:00",
 "dateModified": "2026-10-02T17:00:00.00+00:00",
 "author": {
  "@type": "Person",
  "name": "Shaheer Malik",
  "url": "https://www.shaheermalik.com"
 },
 "publisher": {
  "@type": "Person",
  "name": "Shaheer Malik",
  "url": "https://www.shaheermalik.com"
 },
 "mainEntityOfPage": "https://www.shaheermalik.com/blog/embed-form-webflow-wordpress-shopify"
}
```
