fervor [>]CODING & CURIOSITY
FERVOR LEARNING SYSTEMTUTORIALS
← WordPress

WordPress / 4 MIN READ

Gravity Forms Divi

Using Gravity Forms with DIVI

From the original Fervor library. Examples may use older package versions.

Integrating Gravity Forms into the Divi theme is like adding a secret ingredient into your favorite recipe; it just makes everything better! Divi, with its powerful visual builder, combined with the robust form-building capabilities of Gravity Forms, makes for a web development dream team. Here’s how to seamlessly blend these two for a stunning website:

Step 1: Ensure Everything is Installed

Before we start, make sure you’ve installed both the Divi theme and the Gravity Forms plugin on your WordPress site. It’s like making sure you have all your ingredients before you start cooking.

Step 2: Create Your Form in Gravity Forms

  • Whip up a form in Gravity Forms if you haven’t already. Remember, this form is going to be the main course, so make it delicious—I mean, useful and engaging for your visitors.

Step 3: Enable the Classic Editor in Divi (Optional)

Divi’s visual builder is fantastic, but sometimes, you might want to use the Classic WordPress editor for inserting forms. If that’s the case:

  • Go to Divi > Theme Options > Builder > Advanced.
  • Enable the Enable Classic Editor option. This step is like choosing your favorite kitchen tool; it’s not mandatory, but it can make the process more comfortable.

Step 4: Adding Your Form to a Divi Page

Using Divi Builder:

  1. Open the Divi Builder on the page you want to add your Gravity Form to. Think of it as laying out your cooking station.
  2. Add a New Module: Click on the gray plus button to add a new module. You’re looking for the Text module because, surprisingly, there’s no direct Gravity Forms module. But hey, a wizard doesn’t need a specific wand to cast spells, right?
  3. Insert the Shortcode: In the text module, paste the Gravity Forms shortcode. It looks something like this: [gravityform id="1" title="false" description="false"] Make sure to replace "1" with your form’s actual ID. This step is akin to reciting your magical incantation.
  4. Adjust Settings: While still in the text module, you can play around with the design and advanced settings to make sure your form fits perfectly with your site’s aesthetics. It’s like garnishing your dish to perfection.

Using the Classic Editor:

If you enabled the Classic Editor or are editing a post:

  1. Click on the “Add Form” Button: You’ll see this above the text editor. It’s a straightforward way to add your form without needing the shortcode.
  2. Select Your Form: Choose the form you want to add from the dropdown, decide whether you want to display the form title and description, and insert it into your post or page.

Step 5: Styling Your Form

Gravity Forms looks pretty good out of the box, but you might want to tweak its appearance to match your Divi site perfectly. While Gravity Forms doesn’t directly integrate with Divi’s visual styling options, you can:

  • Use custom CSS to style your forms. This involves adding styles to your child theme’s style.css file or in the Divi Theme Options custom CSS section.
  • Utilize Gravity Forms’ built-in CSS classes to change layouts or field appearances. These can be added directly within the form editor under the Appearance tab for each field.

Step 6: Test Your Form

Always test your form to ensure it looks and works as expected on your Divi site. Fill out the form, submit it, and check the entries and notifications to make sure everything is in tip-top shape.

Step 7: Enjoy Your Creation

You’ve successfully integrated a powerful form into your Divi site, combining functionality with beauty. Sit back, relax, and watch as your site engages and converts visitors like never before.

And there you go! You’ve mastered the art of blending Gravity Forms with the Divi theme, creating a potent combination that will serve your website’s needs and enhance your visitor’s experience. Remember, the key to a great website is not just in the tools you use but how you use them. Happy building!

Keep your curiosity going.Explore more WordPress →
287 TUTORIALS · 22 TOPICSREADY