Embedding Gravity Forms in Divi: The Quick-Start Guide

Learn how to quickly embed Gravity Forms into Divi with this 6-step guide. Create new forms, set up fields, customize the look and more!

  1. How do you embed Gravity Forms in Divi?
    1. Method 1: Using a shortcode
      1. Step 1: Generate your form shortcode
      2. Step 2: Embed your form shortcode with Divi
    2. Method 2: Using a plugin
      1. Step 1: Download and install the plugin
      2. Step 2: Add the Gravity Forms module to your page or post
      3. Step 3: Select the form you want to embed
      4. Step 4: Adjust form style and appearance (optional)
  2. How do you style Gravity Forms in Divi?
    1. Step 1: Install the plugin and add the Gravity Forms module to your page
    2. Step 2: Make adjustments to the form background color
    3. Step 4: Style your form using the Design tab
    4. Step 5: Use custom CSS (optional)
  3. Enhance your Gravity Forms in Divi with Gravity Wiz

The Divi theme and visual page builder, one of the most popular and versatile WordPress combinations, contains a ton of features for creating stunning websites without any coding knowledge. 

With a user base of over 2 million, Divi by Elegant Themes has a powerful visual page builder and sleek templates that empower users to customize every aspect of their website’s appearance, from layout to child themes, to typography and beyond. It’s a comprehensive solution for website building.

One issue. Integrating Gravity Forms (only the go-to form plugin for creating advanced forms in WordPress 😬), into the theme can be a bit challenging.

So let’s discuss two simple ways to add and style Gravity Forms in Divi while ensuring full compatibility. We will explore these two methods and provide step-by-step instructions on how to embed your Gravity Forms using a shortcode and a third-party plugin.

How do you embed Gravity Forms in Divi?

If you’ve used Divi, you probably already know that Divi doesn’t have default functionality for embedding Gravity Forms. 

So, let’s explore two straightforward methods that you can use to embed your forms quickly and easily. 

All you need to get started is:

  1. The Divi Builder and 
  2. The Gravity Forms plugin (Gravity Forms 2.5 or later, if you’re using the plugin method)

Setting up your first form with Gravity Forms? Check out this guide on how to create a simple contact form to get started.

Method 1: Using a shortcode

Using a shortcode is the quickest and simplest method to embed a Gravity Form with Divi. Gravity Forms shortcodes unlock a wide range of functionality beyond embedding forms into your WordPress site, making them a versatile option.

Here’s how to do it.

Step 1: Generate your form shortcode

  • To generate your form shortcode, navigate to the Form Editor for the form you wish to embed and click Embed
  • From here, you can copy the shortcode from the Embed Forms flyout by clicking Copy Shortcode to add the form’s dedicated shortcode to your clipboard.
copy your form shortcode
  • Alternatively, you can manually create the shortcode yourself. A basic Gravity Forms shortcode will always be in the format
[gravityform id=”form id” title=”true/false” description=”true/false” ajax=”true/false”]
  • Here “Form ID” will be replaced by the ID of the form you want to embed.
Form ID of Gravity Forms
  • You can also choose either “true” or “false” for “title”, “description”, and “ajax” to determine whether or not to display the form title or description and whether or not to use AJAX when submitting the form.

Step 2: Embed your form shortcode with Divi

Once you have your shortcode, you can use it to easily embed your form into a post or page using the Divi Code Module. 

Here’s how:

  • From the page or post you want to add the form to, click Use Divi Builder. This will open up Divi’s visual builder, from which you can add modules to your page or post.
  • Click the + icon to open up the list of modules, then search for the Code module and add it to your page or post.
Select ‘Code’ Module in Divi Builder Screenshot
  • Paste your shortcode into the Code box and save it. A preview of your form will be loaded in the Divi page builder.
Embed Shortcode in Divi Module by Pasting the Shortcode Text
  • You can also use the above method to embed your shortcode into a Text module, which is a great solution if you want to include text or images above or below your form.
Select ‘Text’ Divi Module to Embed Shortcode

Method 2: Using a plugin

If you want more options for styling your form, using a plugin to add a dedicated Gravity Forms module to Divi might be a better option. 

Here’s a short tutorial demonstrating how to use the freemium WP Tools Gravity Forms Divi Module plugin.

WP Tools Gravity Forms Divi Module Plugin

We recommend this WordPress plugin because of its solid reviews from happy customers, backed by a developer who is dedicated to its success.

“I’ve worked with multiple coding platforms for 15+ years, with focus on WordPress for the last 13+. I created this plugin four years ago because my specialization lies particularly in sites which use Divi and Gravity Forms in combination. I’m committed to continue finding solutions to problems that people might have when using these tools together.”
Jayant, WP Tools

Here’s how to use it.

Step 1: Download and install the plugin

Download and install the WP Tools Gravity Forms Divi Module plugin. This will add a Gravity Forms module to your Divi builder.

Step 2: Add the Gravity Forms module to your page or post

From the page or post you want to embed your form into, click + to open the list of modules, then search for the Gravity Forms module.

Select Gravity Forms Module

Step 3: Select the form you want to embed

Select the form you want to embed from the Content tab. From here, you can also adjust the following parameters for your form (similar to how you can adjust the form shortcode):

  • Display form title/description.
  • Enable AJAX.
  • Set default field values.
Select Gravity Forms Module

Step 4: Adjust form style and appearance (optional)

If you are happy with the default Gravity Forms styling for your form, that’s it – simply save your changes and a preview of your form will appear in the Divi builder. 

However, if you want to make more adjustments to your form style and appearance, you can do so by clicking on the Design tab.

Here, you can change the layout and style of your form using Divi’s intuitive design options.

How do you style Gravity Forms in Divi?

If you use the shortcode method to embed your Gravity Forms with Divi, the only way you can style your forms as you see fit is by using custom CSS, which will require some coding experience. 

Here’s how to do it using WP Tools Gravity Forms Divi Module:

Step 1: Install the plugin and add the Gravity Forms module to your page

As described in the previous section, download and install the WP Tools Gravity Forms Divi Module plugin. 

Note that to get access to a wider range of styling options for your forms, you’ll need the premium plugin.

Add a Gravity Forms module to your page or post, and choose the form you want to embed.

Step 2: Make adjustments to the form background color

From the Content tab, you can make adjustments to the form background color. Simply select your desired color from the Background Color dropdown and save your changes.

Edit background colour of the form

Step 4: Style your form using the Design tab

To style all other elements of your forms, navigate to the Design tab. 

Here, you can adjust the appearance of all aspects of your form, including the title, spacing, input fields, labels, checkboxes, submit button styling, form submission confirmation messages, field validation messages, placeholder text, footer text, and much more. 

Using Divi’s intuitive design options, you can easily customize your form to your liking.

Step 5: Use custom CSS (optional)

If you want to customize your forms even further beyond the huge range of options available with the plugin, you can still use custom CSS settings to take even more granular control over the appearance of your Gravity Forms. 

However, this requires some coding experience.

Enhance your Gravity Forms in Divi with Gravity Wiz

Adding Gravity Forms to your Divi website isn’t rocket science, even if you aren’t a coding expert.

We’ve discussed a few styling options for both methods in this article. Worth noting, if you’re looking for more styling, functionality, or customization in Gravity Forms, Gravity Perks is a suite of nearly fifty Gravity Forms add-ons intended to do just that — provide you with the tools you need to configure and customize Gravity Forms to your exact needs.

Gravity Perks let you do things like:

Have questions? Let us know in the comments!

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.

Grab a bundle of free Gravity Forms plugins

Enter your email and receive our most popular free plugins and snippets, plus access to hundreds of others.

This field is for validation purposes and should be left unchanged.