Skip to Main Content

Divi tutorial: How to use the Map module

Divi: the easiest WordPress theme to use

Divi: The best WordPress theme of all time!

With over 600.000 downloads, Divi is the most popular WordPress theme in the world. It is complete, easy to use and comes with more than 62 free templates. [Recommended]

Map modules make it easy to integrate custom Google Maps anywhere on your page. You can even add unlimited pins to the map and set a custom starting location. The card modules also come in a full-width format, so be sure to check that out as well!

map divi apercu.png

Google Maps API Key

An API key is Requirements to use the Card module. To obtain an API key, log in to Google Developers Console, which will guide you through the process and automatically activate the Google Maps JavaScript API and all related services. The first thing you will be asked is to create a new project.

register an API Google.jpg

Then you will be asked to name your project. You can name the project as you want. In this example, I simply called it "Cards". You can also enter the domain name of your website (add an * in front of it if you allow access from and to ensure that your API key is authorized.

to name a project Google API.jpg

Once you have created a named project, an API key that you can use is displayed.

create a Google map application credentials.jpg

After obtaining an API key, you must copy / paste it into the theme options panel by going to: Divi >> Theme Options >> General Settings >> Google Maps API Key

How to add a map module to your page

Before you can add a map module to your page, you must first jump to Divi Builder. Once the Divi theme is installed on your website, you will notice a button Use Divi Builder above the publisher each time you create a new page. Click this button to activate Divi Builder and access all Divi Builder modules. Then click on the button Use Visual Builder to start the generator in visual mode. You can also click on the button Use Visual Builder when you browse your website in the foreground if you are connected to your WordPress dashboard.

divi builder

Once you have entered Visual Builder, you can click the gray plus button to add a new module to your page. New modules can only be added inside the lines. If you start a new page, do not forget to add a line to your page first.

Locate the map module in the list of modules and click on it to add it to your page. The list of modules is searchable, which means you can also type the word "map" and then click enter to search and automatically add the map module! Once the module is added, you will be greeted by the list of options of the module. These options are separated into three main groups: Contents , Design et Advanced .

Use case example: Add a map module to a contact page

A card module is a great way to present the location of your business on your contact page. And the ability to add multiple pins to your map to highlight different locations and company information is a useful and engaging feature.

For this example, I will add a map module to present the location and company information by adding a custom pin to the map.

Easily create your website with Elementor

Elementor allows you to easily create any website design with a professional look. Stop paying expensive for what you can do yourself. [Free]

presentation map google map company.jpg

Important Make sure that a valid Google API key has been entered in the Divi theme Options panel. The card module will not work without it.

Using Visual Builder, add a standard section to the bottom of the contact page. Then insert the Card module into your new section. In the Card Settings Contents tab, enter the address of your company under Address of Card Center. The map center address is the center point of the map.

add an option map divi.jpg

Then click + Add a new item to create your first pin. Update the following items:

Title: [enter the title of your location] Content: [enter the content of your lapel pin (address and phone number)] Map Address: [enter the address for this location]

enter an address for a place precis.jpg

Save settings

That's all. Now you have a dynamic map module at the bottom of the contact page with a click pin that displays the company information.

pin divi module card.jpg

Map module content options

In the content tab, you will find all the content elements of the module, such as text, images and icons. All that controls what appears in your module will always be found in this tab.

Are you looking for the best WordPress themes and plugins?

Download the best plugins and WordPress themes on Envato and easily create your website. Already more than 49.720.000 downloads. [EXCLUSIVE]

option content module map.png

+ Add a new article

This is where you add new pins (or slots) to your card module. Clicking on "add new item" will open a brand new list of design parameters (including content, design, advanced) for your new pin. See below for individual pin settings.

After adding your first pin, you will see a gray bar with the title of your pin as a label. The gray bar also has three buttons that allow you to edit, duplicate, or delete the bug.

Google API Key

The Maps module uses the Google Maps API and requires a valid Google API key to function. Before you use the Map module, make sure you have added your API key in the Options panel of the Divi theme.

Map Center Address

Enter an address for the central point of the map, and the address will be geocoded and displayed on the map below. This is useful if you have multiple pins and want the map to be enlarged to a specific and more specific location. You can simply type an address in a standard format, such as "1235 Sunny Road, Some City, State, 88343".

Administrator Label

This will change the module label in the constructor for easy identification. When you use the WireFrame view in Visual Builder, these labels appear in the module block of the Divi Builder interface.

Map module design options

In the Design tab, you'll find all the module's style options, such as fonts, colors, sizing, and spacing. This is the tab you will use to change the appearance of your module. Each Divi module has a long list of design parameters that you can use to change what you want.

module map ongle design.png

Mouse wheel Zoom

Here you can choose whether the zoom level will be controlled by the mouse wheel or not. Often, it is better to disable this option so that visitors are not disturbed when they scroll on the page and block the mouse wheel in the iframe of the card. This is especially true for full-width card modules.

Draggable Zoom

You can choose here if the card can be moved on mobile devices.

Use the grayscale filter

Enabling this option will turn your map into a grayscale image.

Advanced map options

In the Advanced tab, you'll find options that more experienced web designers might find useful, such as custom CSS and HTML attributes. Here you can apply custom CSS to one of the many elements of the module. You can also apply custom classes and CSS IDs to the module, which can be used to customize the module in the style.css file of your child theme.

tab advance module divi.png


Enter an optional CSS identifier to use for this module. An ID can be used to create a custom CSS style or to create links to particular sections of your page.

CSS class

Enter the optional CSS classes to use for this module. A CSS class can be used to create a custom CSS style. You can add multiple classes, separated by a space. These classes can be used in your Divi child theme or in the custom CSS style sheet that you add to your page or website by using Divi theme options or Divi Builder page settings.

Easily create your Online Store

Download free WooCommerce, the best e-commerce plugins to sell your physical and digital products on WordPress. [Recommended]

Custom CSS

Custom CSS can also be applied to the module and to one of the internal elements of the module. In the Custom CSS section, you will find a text field in which you can add custom CSS style sheets directly to each element. The CSS entries in these parameters are already wrapped in the style tags. So just enter the CSS rules separated by semicolons.


This option allows you to control the devices on which your module appears. You can choose to disable your module on tablets, smart phones or desktops individually. This is useful if you want to use different modules on different devices, or if you want to simplify mobile design by eliminating certain elements of the page.

Individual card pin options

option of close divi.png


When creating a new pin, you can assign a title. This title will appear in the box by hovering over the pin on the map.


When creating a new pin, you can assign a block of content text. This text will appear in the box by flying over the pin on the map.

Map address

This is the exact spot on the map where your new pin will appear. You can enter the address in a standard format.

Other Divi tutorials

This article features 0 comments

Leave a comment

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

This site uses Akismet to reduce unwanted. Learn more about how your comments data is used.

Back To Top