How to add an inline form to your WordPress website with Gutenberg editor

Edited

Inline forms are one of the most common ways to grow your email list. They appear directly inside your webpage content—like in a blog post, sidebar, or footer—so visitors can subscribe without leaving the page.

With WordPress and the Gutenberg editor, adding a Flodesk inline form only takes a few minutes. You simply copy two code snippets from Flodesk and place them in the right spots on your site.

What you’ll need before you start

  • A customized and ready Flodesk inline form

  • Access to your WordPress dashboard

  • Permission to install plugins (recommended method)

Both the Header code and the Inline code must be added for the form to display correctly.

Step 1: Create your inline form in Flodesk

  1. Log in to your Flodesk account.

  2. Go to Forms.

  3. Create a new Inline Form or open an existing one.

  4. Customize the design, text, and segments as needed.

When you're ready to add it to your website, move to the next step.

Step 2: Copy the embed code from Flodesk

  1. Inside the form editor, click Embed.

  2. You will see two code snippets:

    • Header code

    • Inline code

You will add them to WordPress in the next steps.

Important:
Both snippets are required. The header code loads the form script, and the inline code tells your page where to display the form.

Step 3: Add the Header code to WordPress

The header code only needs to be added once to your website.

There are two ways to do this.

Option 1 (Recommended): Use a plugin

Using a plugin is the easiest and safest option.

  1. Log in to your WordPress Dashboard.

  2. Go to Plugins → Add New.

  3. Search for Insert Headers and Footers.

  4. Click Install Now.

  5. Click Activate.

Once you’ve installed and activated the plugin it will appear under Settings.

After installing:

  1. Go to Settings → Insert Headers and Footers.

  2. Find the Scripts in Header field.

  3. Paste the Flodesk header code into that box.

  4. Click Save.

Note: Your settings screen may look slightly different depending on your installed plugins. This is normal.

You can also use other similar plugins if you prefer.

Option 2: Add the header code manually (advanced)

Advanced users can add the code directly to their theme’s functions.php file.

This method requires editing theme code and is not recommended unless you're comfortable working with WordPress files.

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

Step 4: Add the inline form to a page with Gutenberg

Once the header code is installed, you can place the form anywhere on your website.

  1. Copy the Inline code snippet from Flodesk.

  2. Open the WordPress page or blog post where you want the form.

  3. Click Add Block in the Gutenberg editor.

  4. Select the Custom HTML block.

  5. Paste the Inline code snippet into the block exactly as provided.

Step 5: Preview and publish

The inline form may not appear in the editor preview. This is normal.

To confirm everything works:

  1. Click Preview.

  2. Check the live page preview.

  3. If the form displays correctly, click Publish.

Your inline form is now live on your WordPress website.

Summary

To add a Flodesk inline form to WordPress with Gutenberg:

  1. Create your inline form in Flodesk.

  2. Copy the Header code and Inline code.

  3. Add the Header code to your site using a plugin or manually.

  4. Add the Inline code using a Custom HTML block in Gutenberg.

  5. Preview and publish your page.

Once published, visitors can subscribe directly from your webpage.

FAQs

Why do I need both the header code and inline code?

The header code loads the Flodesk form script, while the inline code places the form on your page. Without both, the form will not display correctly.

Where can I place an inline form on my WordPress site?

You can place it anywhere using a Custom HTML block, including:

  • Blog posts

  • Landing pages

  • Sidebars

  • Footers

  • Homepage sections

Why can’t I see the form inside the Gutenberg editor?

Inline forms often do not display in edit mode. Use the Preview button or view the published page to confirm the form is working.

Do I need to install a plugin?

No, but it’s recommended. Plugins like Insert Headers and Footers make it much easier to add the header code without editing your theme files.

Can I add the same inline form to multiple pages?

Yes. Once the header code is installed, you can paste the inline code snippet on any page where you want the form to appear.

Can I style the form inside WordPress?

Form design is controlled inside Flodesk. Any design changes should be made there; the updated form will then automatically appear on your website.

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.