How To Require Visitors to Enter Email Address to Download a File in Divi

Requiring visitors to enter their email addresses to download a file offered on your website is a smart strategy; it’s a win-win! By positioning your downloadable files behind an email opt-in form, you can provide visitors with exclusive content while simultaneously building your email marketing audience.

This article will guide you through the process of setting up an email opt-in form within the Divi Email Optin module and integrating it with your downloadable file, ensuring a seamless user experience for both you and your visitors.

Steps to Create a Form that Requires Visitors to Enter Email Address to Download a File in Divi

We want to be clear about everything before we begin the tutorial. Our goal with this article, as illustrated in the GIF above, is to have a popup appear that asks visitors to input their email address to get your file when they click the download button on your website.

Alright. Let’s get started!

Step 1: Create a Popup

In fact, we have a dedicated article that covers all you need to know to create a popup in Divi.

You can find instructions on how to make a popup in Divi on that page; after you have done that, you can return here to continue the tutorial.

There are a few things to note when creating a popup:

  • Popup trigger: In this particular case, a popup you must create is a click/button trigger; a popup appears when a user clicks on a download button on your page.
  • Popup content: As we mentioned earlier, we need an email opt-in form within the Divi Email Optin module as a popup. So, please add a Divi Email Optin module to the popup section.

Step 2: Set up the Divi Optin Module

The above image and GIF show that our popup is prepared. The next step is to configure the Divi Email Optin module so that it can interact with your site. This will allow users to download files when they click the button, and you can collect their emails at the same time.

Email Account Settings

In the module settings, go to the Content tab, then navigate to Email Account.

Selecting the email marketing platform you use is a requirement of this setting. So, please choose your email service provider and your account.

If you don’t have an email marketing provider account yet, please create one first, and then you can continue this tutorial.

Success Action Settings

Under the Content tab, navigate to the Success Action section.

Next, set the Action option to “Redirect to a custom URL.” It means, that when your site visitors have successfully subscribed to your list, they will be redirected to a downloadable file.

Once you do that, don’t forget to fill in the URL of your file in the Redirect URL field.  In this example, we get the URL from our PDF file in the media library. Simply copy the file URL and paste it into the Redirect URL field.

It is done. After making changes in the Divi editor, please save the page, and leave the Visual Builder. You can view the final result by clicking the popup trigger button, entering an email address, and then clicking the download button.

The Bottom Line

This article shows you that clever workarounds are available even though Divi does not have built-in email capture functionality for downloads.

You can create a gated content system without using extra plugins by combining Divi’s email opt-in modules for redirecting after sign-up with cleverly disguised download URLs. There is no need for some technical know-how, this method provides a simple way to grow your email list.

This page may contain affiliate links, which help support our project. Read our affiliate disclosure.
Picture of Akbar Padma

Akbar Padma

Akbar is a WordPress expert and a writer staff at WPPagebuilders. He mainly writes about Gutenberg, Elementor, Divi, and other WordPress page builders.
Want to save yearly expense up to $219? why not?

Leave a Comment

Save your Divi assets to the cloud and access them from anywhere.