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

A step-by-step tutorial on how to embed a Flodesk inline form to a WordPress website using the Gutenberg editor

Petra Molnar avatar
Written by Petra Molnar
Updated over a week ago

Flodesk forms are your website’s best friend. They capture your visitors’ email addresses so you can build your list and start regularly sharing your brand message. And adding them to your WordPress website with the Gutenberg editor couldn’t be easier.

The most common sign-up forms you find on websites are inline forms. They’re the ones that are embedded into website pages, blog posts, sidebars or footers. Unlike popup forms, they appear as a natural, built-in part of the web page and are displayed at all times.

How do you embed an inline form to your website?

Just add two code snippets.

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

Step 2. At the end of the form customization steps, you’ll get two code snippets. It will look something like the below image. You need to add these codes to your WordPress website so that the form gets displayed and your subscribers can sign up.



Note: Both the header code and the inline code have to be added to your website. It’s not enough to add only one of them.

How to add the header code to your WordPress website

You can add the header code to your website either with the help of a plugin or manually.

Adding the header code with a plugin

The easiest way to add the Flodesk header and inline code snippets to your website is to install a plugin from the WordPress plugin library. It helps you add code snippets to your website’s header and footer section. If you already have a plugin like this, jump to Step 6.

Otherwise, follow these steps first.

Step 1. Copy the Flodesk header code.

Step 2. Login to your WordPress Dashboard.

Step 3. Go to Plugins > Add new. It will look similar to the below image.

Step 4. In the Search plugins field on the top right, run a search for the “Insert Headers and Footers” plugin.

Step 5. Click on Install Now next to the “Insert Headers and Footers” plugin then click Activate.

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

Step 6. Click on Settings, then click on Insert Headers and Footers in the left side panel—see the example screenshot below—and paste the Flodesk header code into the "Scripts in Header" box.

Step 7. Save your changes.

Adding the header code manually

This is an advanced method and would require you to write code directly into your theme’s functions.php file.

How to add the Inline code snippet to your WordPress website using the Gutenberg editor

Once the header code is added to your WordPress website—either via a plugin or manually—the next step is to add the Flodesk inline code where you want the form to show on the page.

Step 1. Copy the Flodesk inline code.

Step 2. Add a custom HTML block to your blog post or page where you want to embed your Flodesk inline form.

Step 3. Paste the inline code snippet from Flodesk exactly as it is into the Gutenberg editor’s HTML block.

Note: The inline form may not be visible in Gutenberg in edit mode. Save your page as a draft and check the live rendering via the Preview button and it should appear normally.

Step 4. Click Publish to set your page and form live.

Let's sum it up!

  • If you’re serious about increasing your sales, building your brand and positioning yourself as a thought leader, be sure to add an inline form to your website.

  • First, create an inline form. To embed an inline form to your WordPress website you have to add both the header code and the inline code that’s generated to your website.

  • Copy the header code snippet and add it to your website with the help of a plugin in WordPress or by adding the code directly into your theme’s functions.php file.

  • Copy the inline code snippet and add it where you want the form to appear on your webpage using a custom HTML block in the Gutenberg editor.

  • Start capturing visitors’ email addresses and sending out those beautiful emails!

More to learn:



We'd love to hear about your recent experience when searching for solutions to issues in the Flodesk Help Center (Knowledge Base). With your feedback, we can improve our knowledge base with new and better ways to help you succeed!

Please do not submit support tickets and feature requests via this feedback form.

If you need technical assistance, please submit a support ticket via email at support[at]flodesk.com mentioning your Flodesk account login email with a detailed description of your problem.



Do you have an idea for a feature that will help improve Flodesk for you and other members? Our Product team would love to hear from you.

Did this answer your question?