Geotargeting WordPress Blog

Important news, plugin updates and articles from WordPress community.

How to Geotarget WordPress Divi Builder Content

Looking for a way to geotarget Divi content at your WordPress site based on IP geolocation? In this post, you'll learn how to geotarget any content you've built with the Divi Builder (using either the Divi theme or the standalone builder plugin).

That is, you can show one module to visitors from Spain, and another module to visitors from the rest of the world. Or, you can also geotarget sections and rows, too!

Better yet, you'll be able to do all of this without leaving the regular Divi Builder interface that you're already familiar with.

Ready to get started? Let's dive in...

What You'll Need to Geotarget Divi Content

To geotarget your Divi Builder content, you'll use Geotargeting Pro from Geotargeting WP plugin.

Geotargeting Pro includes a built-in Divi integration that lets you add geotargeting to your content right from the regular Divi Builder interface.

You'll be able to geotarget:

  • Sections
  • Rows
  • Modules

Or, you can geotarget entire pages that you've built with Divi.

In order to use Geotargeting Pro, you'll need to sign up for the Geotargeting WP service. While Geotargeting WP is a paid service, you get a 14-day free trial, which means that you can follow along with this tutorial 100% for free.

Here's how to do it...

Step 1: Install and Activate Geotargeting WP Plugin

To get started, head to the Geotargeting WP signup page and create your account. Remember, you get a 14-day free trial, so you won't need to pay anything.

Then, download the Geotargeting WP plugin from the Geotargeting WP website and install the plugin at your WordPress site.

After you've activated the plugin at your WordPress site, go to the API Keys section of the Geotargeting WP site.

Add your website to the Allowed domains list. Then, you'll need to copy and paste the values for your API Key and API Secret into the Geotargeting Pro settings in your WordPress dashboard:

geotargeting wordpress settings

You can do that in the new GeoTargeting WP area in your WordPress dashboard:

divi geolocation

Make sure to save your changes. Then, you're ready to geotarget Divi content!

Step 2: Add Geotargeting in Divi Builder Interface

Next, open the Divi Builder for the content where you want to add geotargeting.

You'll use the regular Divi Builder interface. Only now, when you open the settings for any section, row, or module, you'll see a new Geotargeting tab:

geotargeting divi modules

In this tab, you'll see a list of options that let you target:

  • Countries
  • Cities
  • States
  • Zip codes
  • Radius (A distance in km from a latitude and longitude coordinates)

divi geotargeting sections

For each geographic area, you have both Include and Exclude options:

  • Show - only show to these listed countries
  • Hide - show to all countries EXCEPT these listed countries

Let's say you want to show:

  • One button module to visitors from Spain
  • A different button module to visitors from everywhere else (except Spain)

First, you'd create one button for visitors from Spain and use the Show Countries option to target the button to Spain:

divi builder geotargeted

Then, you'd add another button module in the same spot for visitors from everywhere else. Only now, you'd use the Hide Countries option to exclude Spanish visitors from seeing this button:

divi wordpress geolocation

Now, visitors from Spain will see the first button but not the second button. And it will be reversed for visitors from anywhere outside of Spain.

And that's it! Using this same approach, you'll be able to geotarget as many Divi sections, rows, or modules as needed.

If you want to geotarget entire posts or pages built with Divi, check out our general guide on how to customize WordPress content based on location.

Any Questions About How to Geotarget Divi Content?

That wraps up our guide on how to display different Divi content based on a user's location.

If you have any questions, leave a comment and we'll try to help!

Powered by Froala Editor

Check out our WordPress geolocation solutions
to find out everything you can do!

Start your free trial