Creating Multiple Targeted Contact Forms on Hover in One Design with Divi

Last Updated on September 20, 2022 by 4 Comments

Creating Multiple Targeted Contact Forms on Hover in One Design with Divi
Blog / Divi Resources / Creating Multiple Targeted Contact Forms on Hover in One Design with Divi
Play Button

The way you display contact forms on your website can definitely help increase conversion rates. Besides creating beautiful and user-friendly contact forms, you can also approach it in a more targeted way. In this post, we’ll show you how to create one design with multiple contact forms that appear depending on which service your visitors are interested in. You’ll be able to download the JSON file for free as well!

Let’s get to it.

Preview

Before we dive into the tutorial, let’s take a quick look at the outcome across different screen sizes.

Desktop

targeted contact forms

Mobile

targeted contact forms

Download The Targeted Contact Forms Layout for FREE

To lay your hands on the free targeted contact forms layout, you will first need to download it using the button below. To gain access to the download you will need to subscribe to our newsletter by using the form below. As a new subscriber, you will receive even more Divi goodness and a free Divi Layout pack every Monday! If you’re already on the list, simply enter your email address below and click download. You will not be “resubscribed” or receive extra emails.

Once you’ve uploaded the layout to your page, you’ll still have to add the CSS code to the page you’re working on. You can find the CSS code at the end of this tutorial.

Subscribe To Our Youtube Channel

Let’s Start Recreating!

Add Section #1

Open a new or existing page and add a new regular section.

targeted contact forms

Add New Row

Column Structure

Continue by adding a new row using the following column structure:

targeted contact forms

Add Text Module

Add H2 Content

Add a Text Module to the column with some H2 content of your choice.

targeted contact forms

H2 Text Settings

Move on to the design tab and change the H2 text settings accordingly:

  • Heading 2 Font Weight: Ultra Bold
  • Heading 2 Font Style: Uppercase
  • Heading 2 Text Alignment: Center
  • Heading 2 Text Color: #000000
  • Heading 2 Text Size: 6vw
  • Heading 2 Letter Spacing: -0.4vw
  • Heading 2 Line Height: 0.8em

targeted contact forms

Spacing

Add some custom top and bottom margin as well.

  • Top Margin: 2vw
  • Bottom Margin: 2vw

targeted contact forms

Add Section #2

Gradient Background

Add another section right below the previous one and apply the following gradient background (or any gradient background of your choice):

  • Color 1: #30fff1
  • Color 2: #4635ff
  • Gradient Direction: 110deg
  • End Position: 85%

targeted contact forms

Top Divider

Move on to the design tab and add a top divider.

  • Divider Style: Find in List
  • Divider Arrangement: Underneath Section Content

targeted contact forms

Bottom Divider

Add a bottom divider as well.

  • Divider Style: Find in List
  • Divider Arrangement: Underneath Section Content

targeted contact forms

Sizing

Change the height in the sizing settings next.

  • Height: 200px

targeted contact forms

Spacing

Add some custom spacing settings next.

  • Bottom Margin: 30vw (Desktop), 45vw (Tablet), 200vw (Phone)
  • Top Padding: 0vw
  • Bottom Padding: 0vw

targeted contact forms

CSS Class

Later on the post, we’re going to add some CSS code to make the effect work. In preparation for that, we’ll add a CSS class to the section.

  • CSS Class: contact-section

targeted contact forms

Add New Row

Column Structure

Continue by adding a new row using the following column structure:

targeted contact forms

Overflow

Open the row settings and hide the overflows.

  • Horizontal Overflow: Hidden
  • Vertical Overflow: Hidden

targeted contact forms

Transitions

Remove the transition duration as well.

  • Transition Duration: 0ms

targeted contact forms

Add Blurb Module

Add Title to Content Box

Time to start adding modules! Add a Blurb Module and enter a title of your choice that represents one of your services.

targeted contact forms

Select Icon

Select an icon next.

targeted contact forms

Default Background Color

Continue by adding a default background color.

  • Background Color: #ffffff

targeted contact forms

Hover Background Color

Change the background color on hover.

  • Background Color: #000000

targeted contact forms

Default Icon Settings

Move on to the design tab and change the icon settings accordingly:

  • Icon Color: #000000
  • Use Icon Font Size: Yes
  • Icon Font Size: 2.5vw (Desktop), 5vw (Tablet), 7vw (Phone)

targeted contact forms

Hover Icon Settings

Modify the icon color on hover.

  • Icon Color: #ffffff

targeted contact forms

Default Title Text Settings

Open the title text settings next and apply the following changes:

  • Title Font Weight: Ultra Bold
  • Title Font Style: Uppercase
  • Title Text Alignment: Center
  • Title Text Color: #000000
  • Title Text Size: 0.9vw (Desktop), 1.8vw (Tablet), 3vw (Phone)

targeted contact forms

Hover Title Text Settings

Change the title text color on hover.

  • Title Text Color: #ffffff

targeted contact forms

Sizing

Modify the width across different screen sizes next.

  • Width: 10vw (Desktop), 17vw (Tablet), 30vw (Phone)
  • Module Alignment: Center

targeted contact forms

Spacing

And add some custom margin and padding values to the spacing settings.

  • Top Margin: 4vw
  • Bottom Margin: 4vw
  • Top Padding: 2vw (Desktop), 3vw (Tablet), 6vw (Phone)
  • Bottom Padding: 2vw (Desktop), 3vw (Tablet), 6vw (Phone)

targeted contact forms

Border

We’re also turning the module into a circle by adding ’50vw’ to each one of the corners in the border settings.

targeted contact forms

Box Shadow

Add a box shadow as well.

targeted contact forms

Default Transform Scale

Move on to the transform settings and make sure the default transform scale values remain ‘100%’.

targeted contact forms

Hover Transform Scale

Change these values on hover.

  • Bottom: 120%
  • Right: 120%

targeted contact forms

Add Contact Form

Make Name & Email Fields Fullwidth

The second module we need in this row is a Contact Form Module. Once you’ve added the contact form, open the name and email fields and make them fullwidth.

  • Make Fullwidth: Yes

targeted contact forms

targeted contact forms

Remove Message Field & Insert Three Input Fields for Service-Specific Questions

Add three questions that apply to that specific service next.

targeted contact forms

Disable Captcha

Disable the captcha option as well.

  • Show Captcha: No

targeted contact forms

Fields Settings

Move on to the design tab and change the fields settings accordingly:

  • Fields Top Padding: 0.6vw (Desktop), 0.9vw (Tablet), 1.5vw (Phone)
  • Fields Bottom Padding: 0.6vw (Desktop), 0.9vw (Tablet), 1.5vw (Phone)
  • Fields Text Size: 0.8vw (Desktop), 1.6vw (Tablet), 2.3vw (Phone)

targeted contact forms

Button Settings

Change the appearance of the button next.

  • Use Custom Styles for Button: Yes
  • Button Text Size: 1vw (Desktop), 2vw (Tablet), 3vw (Phone)
  • Button Text Color: #ffffff
  • Button Background Color: #000000
  • Button Border Width: 0px
  • Button Font Weight: Ultra Bold
  • Button Font Style: Uppercase

targeted contact forms

targeted contact forms

Spacing

Add some padding values too.

  • Top Padding: 2vw
  • Bottom Padding: 2vw
  • Left Padding: 2vw
  • Right Padding: 2vw

targeted contact forms

Border Settings

Last but not least, go to the border settings and add ’10px’ to each one of the corners.

targeted contact forms

Clone Row Three Times

Once you’ve completed the first row, you can go ahead and clone it three times.

targeted contact forms

Change Blurb Content & Icon for Each Duplicate Row

Make sure you change the blurb title and icon for each duplicate.

targeted contact forms

targeted contact forms

Change Service-Specific Questions for Each Duplicate Row

Modify the contact form’s specific questions as well.

targeted contact forms

Additional Row Settings

Default Height

Open the first row’s settings once again, go to the sizing settings and change the height across different screen sizes.

  • Height: 18vw (Desktop), 27vw (Tablet), 38vw (Phone)

targeted contact forms

Hover Height

Bring back the height to auto on hover.

  • Height: auto

targeted contact forms

Extend Row Sizing Settings to All Rows in Section

Once you’ve modified the sizing settings for the first row, you can extend the settings to all the rows throughout the section.

targeted contact forms

targeted contact forms

Place Rows Next to Each Other on Desktop & Tablet

Open Page Settings

Last but not least, we’re going to place all four rows next to each other on tablet and desktop. To do that, open the page settings.

targeted contact forms

Insert Custom CSS

Move on to the custom CSS box and add the following lines of CSS Code:

@media (min-width: 767px) {
.contact-section {
display: grid;
grid-template-columns: 25% 25% 25% 25%;
}
}

targeted contact forms

Preview

Now that we’ve gone through all the steps, let’s take a final look at the outcome across different screen sizes.

Desktop

targeted contact forms

Mobile

targeted contact forms

Final Thoughts

In this post, we’ve shown you how to create multiple targeted contact forms in one design. This is a great way to learn more about your visitors and what particular service they’re interested in. If you have any questions or suggestions, make sure you leave a comment in the comment section below!

If you’re eager to learn more about Divi and get more Divi freebies, make sure you subscribe to our email newsletter and YouTube channel so you’ll always be one of the first people to know and get benefits from this free content.

Divi Marketplace

Are You A Divi User? Find Out How To Get More From Divi! 👇

Browse hundreds of modules and thousands of layouts.

Visit Marketplace
Divi Marketplace
Divi Cloud

Find Out How To Improve Your Divi Workflow 👇

Learn about the new way to manage your Divi assets.

Get Divi Cloud
Divi Cloud
Divi Hosting

Want To Speed Up Your Divi Website? Find Out How 👇

Get fast WordPress hosting optimized for Divi.

Speed Up Divi
Divi Hosting
Premade Layouts

Check Out These Related Posts

New Starter Site for AI (Quick Install)

New Starter Site for AI (Quick Install)

Posted on December 17, 2024 in Divi Resources

Divi empowers you to build the best websites possible, and now, Divi Quick Sites takes website creation to a whole new level. This revolutionary tool lets anyone, regardless of skill level, generate a complete website in under two minutes! Divi Quick Sites provides everything you need to launch...

View Full Post

4 Comments

  1. Hi Donjetë, great post! Thank you.
    I have one question, why would you turn captcha off? I’ve done this across my website and start to get a lot of spam emails from my contact forms.

  2. Unsure specifically where to download the contact form:(

  3. Nice use of css grid. I’ve started using it more and more for in layouts. The possibilities are endless.

  4. This is nice to create a great “Get In Touch” section for me by following this tutorial. I am really enjoying to read Divi blog posts and to see latest Divi features update.

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today