How to add an inline form to your WordPress website with Elementor

Edited

Flodesk inline forms help you collect email subscribers directly from your website so you can grow your list and stay connected with your audience.

If you’re using WordPress with the Elementor editor, embedding an inline form is straightforward and does not require advanced technical knowledge.

What is an inline form?

Inline forms are opt-in forms that are embedded directly into your website content. They appear as a natural part of the page and are always visible.

Inline forms are commonly added to:

  • Website pages

  • Blog posts

  • Landing pages

  • Sidebars or footers

Unlike popup forms, inline forms do not interrupt the visitor’s browsing experience.

What you need before you start

Before embedding your Flodesk inline form, make sure that:

  • You have created and customized an inline form in Flodesk

  • Your website is built on WordPress

  • You are using the Elementor page builder

  • You have permission to install plugins (or edit theme files, if using the manual method)

How embedding an inline form works

To display a Flodesk inline form on a WordPress website, you must add two code snippets:

  1. Header code – added once to your website

  2. Inline code – added wherever you want the form to appear

Both snippets are required. Adding only one of them will prevent the form from displaying correctly.

Step-by-step: How to add an inline form to WordPress with Elementor

Step 1: Create your inline form in Flodesk

  1. In your Flodesk account, create a new inline form

  2. Customize the design, text, and fields

  3. Save your form

Step 2: Copy the embed codes from Flodesk

  1. Click the Embed button in the top-right corner of the form builder

  2. You’ll see two code snippets:

    • Header code

    • Inline code

  3. Keep both snippets handy—you’ll need them in the next steps

Important: Both the header code and inline code must be added to your website.

How to add the header code to your WordPress website

You can add the Flodesk header code in two ways:

  • Using a plugin (recommended)

  • Manually editing your theme files (advanced)

Option 1: Add the header code using a plugin (recommended)

This is the easiest and safest method for most users.

  1. Log in to your WordPress Dashboard

  2. Go to Plugins → Add New

  3. Search for Insert Headers and Footers

    • You may use a different plugin with similar functionality if you prefer

  4. Click Install Now, then Activate

  5. Once activated, go to Settings → Insert Headers and Footers

  6. Paste the Flodesk header code into the Scripts in Header field

  7. Click Save

Your Settings menu may look slightly different depending on other plugins installed. This is normal.

Option 2: Add the header code manually (advanced)

This method requires adding code directly to your theme’s functions.php file.

This approach is recommended only if you are comfortable working with code, as errors can affect your site. If you choose this method, follow WordPress best practices or consult a developer.

Learn how to add code to your theme's functions.php file here.

How to add the inline code using Elementor

Once the header code has been added, the next step is to place the inline form on your page.

Step 1: Copy the inline code from Flodesk

Step 2: Add an HTML widget in Elementor

  1. Open the page in Elementor

  2. Drag and drop the HTML widget onto the page where you want the form to appear

Step 3: Paste the inline code

  1. Paste the Flodesk inline code exactly as provided into the HTML widget

  2. The form may not appear while you are in edit mode—this is expected

Step 4: Save and preview

  1. Click Update

  2. View the live page to confirm the form is displaying correctly

Troubleshooting checklist

If your inline form is not appearing:

  • Confirm that both the header code and inline code were added

  • Make sure the header code is in the header, not the footer

  • Ensure the inline code is inside an Elementor HTML widget, not a text widget

  • Refresh the page or clear your cache

Summary

To add a Flodesk inline form to a WordPress website using Elementor:

  1. Create and customize an inline form in Flodesk

  2. Copy both the header code and inline code

  3. Add the header code using a WordPress plugin or manually

  4. Paste the inline code into an HTML widget in Elementor

  5. Save and preview your page

Once published, your inline form will begin collecting subscribers directly from your site.

FAQ: Adding inline forms to WordPress with Elementor

How do I add a Flodesk inline form to WordPress using Elementor?
You embed it by adding two code snippets from Flodesk: a header code added site-wide, and an inline code added inside an Elementor HTML widget.

Do I need both the header code and inline code?
Yes. The header code loads the form functionality, and the inline code controls where the form appears on the page.

Where do I paste the inline form code in Elementor?
Paste the inline code into an HTML widget placed where you want the form to appear.

Why can’t I see the inline form in Elementor edit mode?
This is normal. Inline forms often do not render inside the editor and will appear only on the live page.

Can I use any plugin to add the header code?
Yes. Any plugin that allows you to insert scripts into the site header will work. “Insert Headers and Footers” is one commonly used option.

Can I add the same inline form to multiple pages?
Yes. Add the header code once, then reuse the inline code in HTML widgets on any page.

Was this article helpful?

Sorry about that! Care to tell us more?

Thanks for the feedback!

There was an issue submitting your feedback
Please check your connection and try again.