Divi Maps Not Working with API Issues [SOLVED]

business clock icon
Created November 21, 2020

Are you having trouble getting your Google Maps module on Divi to display properly?

If you are building a website with the popular Divi theme, then you might have come across a maps module that looks like this.

This could flash when you first try and add a Google Maps module or when you upload a premade template from the Divi library. Being able to properly display the maps module takes an API key from Google Cloud Console and requires a billing profile and a few extra steps.

Unfortunately, (and in my most humble opinion) Google Cloud Console is clunky and difficult to navigate, and understanding the proper way to connect it with Divi can lead to confusion. Hopefully, these steps can help you avoid the long hours of frustration of something that should have been super simple.

 

How to Connect Google Cloud Console to Divi Google Maps

Here are the steps required to display the Google Maps module correctly and some common mistakes you might run into along the way.

 

Step 1: Create a new project on Google Cloud Platform

The first thing you want to do is head over to Google Cloud Platform and create a new project.

google cloud console project

Name your project and connect it to your Google billing account.

**Important Note – While most small business websites will not incur any charges from Google, it is still required to include billing information for each profile and you are only allowed to have 2 projects running on a single billing profile. If you are working with many clients that use Google Maps on their website, you might need to set up a different billing account for each client. **

One common error that many people run into when the maps module is not displaying properly has to do with an incorrect billing setup. Remember, a single billing account can only be used for two projects.

 

Step 2: Create APIs Required for the Divi Maps Module

Open the main menu for the Google Cloud Platform and hover over “APIs & Services” and click on “Library”.

library google cloud

**Note – This next step is important and usually is the most common issue with the maps module not displaying correctly. **

You will need to enable 2 different APIs for the Divi Maps Module to display correctly.

  1. Maps JavaScript API
  2. Geocoding API

Often, Divi builders will simply enable the Maps JavaScript API (Maps for your Website) and will not know they need to enable the Geocoding API as well.

 geocoding api example

Once you have enabled both the Maps JavaScript API and the Geocoding API, it is time to gather credentials to plug into the Divi theme.

 

Step 3: Create Credentials to use Google APIs on Divi

Next, head back to the main menu of Google Cloud Platform, hover over “APIs & Services” and click on “Credentials”.

credentials Google Api

On the credentials page, click on “+ Create Credentials” located at the top of the page and then clock on “API key” to create your new API key.

API key created

Now you have your API key that is ready to plug into the Divi theme.

 

(Optional) Step 4: Restrict API Key

You have the additional option to restrict the API key to specific rules to eliminate the possibility of someone stealing your credentials and using it in a different area on the web (and charging your billing account for it).

You can restrict the key by specific APIs, IP addresses, or web sites. For our clients, we will simply restrict the key to match the exact website address.

 

Step 5: Add the API key to the Divi Theme

In this final step, you will add the API key to the Divi theme to be used throughout the website. In the backend of your WordPress build, click on Divi and “Theme Options” in the left side menu. Under the General tab of the Divi Theme Options is an option to add a Google API Key. Copy the API key you created and paste it here and then click “Save”.

 divi theme example

Finally, refresh the current page displaying the map and voila! You now have a working Divi Maps module.

 

Divi Maps Module Still Not Displaying Correctly?

If the maps module is still not displaying correctly, right-click on the page and click “Inspect” to view the page source code. From here, click on “Console” to display JavaScript loaded on the page and if there is something wrong with the Maps module, it will be displayed here and will give you the information you need to move forward.

 JavaScript console

We know just how frustrating it can be when there is a technical problem when building a website. We hope that this guide was able to eliminate one of those headaches to get you back on the creative process.

Good luck!

5 Comments

  1. Rus

    Thank you! it worked!

    Reply
  2. Sarah Austin

    Thanks VERY much, finally got to the bottom of the maps mystery! I really appreciate this post

    Reply
  3. Ruth

    What a great guide, thank you. Clear instructions. I’d been going round in circles on this one!

    Reply
  4. Eric Oxenberg

    If you don’t specify an API, Google should authorize all of them. By the article above, this may or may not be so. If you use Google’s global command, */domainname.com/*, Google should authorize the entire site. It doesn’t do that either; I always need to specify the exact page to authorize, with both www and no-www prefixes. I’ve always wondered whether it is the Google API service or the Divi module that’s so stupid, and still haven’t figured it out.

    Reply
  5. Richard Hart

    Awesome very helpful

    Reply

Submit a Comment

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

Is Your Business Being Found Online?

Laptop Metrics Colorado

Free Digital Marketing Report ($150 Value)

marketing module lineWant to know how your business stacks up against the competition?

Read more articles about Web Design.

What Are 10 Things a Website Should Have

Are you someone who is thinking of launching their website? Do you have a business plan in mind and want to know how to successfully execute your ideas? If so, then you have come to the right place. In this article, we will be giving you 10 superb ideas that you need...

15 Websites with Free Stock Images for Commercial Use

Photography is an essential part of any design and finding the right commercial-use photos for free can be a challenge. Sure, you could find the standard stock photos of a person sitting in front of a computer or business professionals smiling in a conference room,...

Best Sites for Making Your Own Font

Typography is one of the most important parts of a design and choosing a font that works on a project can be difficult. Luckily, there is a wide variety of free and paid fonts on sites like Google Fonts or DaFont. But you are not here to take the easy road with a...

Top 12 URL Shorteners to Use in 2022

  What are URL Shorteners? A URL shortener is a tool or service that lets you create unique, short URLs for redirection to a particular website or webpage. You can identify a shortener link as it mentions the tool's name along with a combination of random...

10 Web Design Examples to Inspire Your Next Site Launch

Developing a website for your company can be a difficult task; you should be aware that most website visitors leave web pages within 10-20 seconds. That amount of time is all they need to see if they have to remain engaged or add to the site’s bounce rate. Include...

6 Reasons Why A Good Design Propels Business Growth

A good design is a common thing in the digital world. Unfortunately, some entrepreneurs think that a good logo and website design is something to look at and not worry about. The truth is that a good design can propel your business to new heights. Here are six reasons...

5 Website Redesign Tips To Nail User Experience

A website is a powerful marketing tool that can help businesses improve their online presence and engage with existing and potential customers alike. A business website can also function as 24/7 customer support, allowing companies to answer users' queries in real...

The Golden Rules of Web Design That You Should Know About

When the internet was first created, the designers had to work with the constraints of the technology. Today's web design is much more open and expansive, but there are still many rules that you should follow when designing your site. Some of these golden rules have...

Read more articles about business.

What Do You Need For Creating A Good Online Course

What Do You Need For Creating A Good Online Course

You might be overwhelmed with all the technology and tools to help you build a strong educational program. But before worrying about which platforms and technologies to use, it's essential to focus on what matters most: content. The success of any online course rests...

6 Benefits of Low-Code Development for Non-Technical Businesses

6 Benefits of Low-Code Development for Non-Technical Businesses

  Are you tired of always being at the mercy of technical experts for your business's application development needs? Probably it’s a good time to turn to low-code development platforms. These innovative tools enable businesses to create custom applications...

Working As A Freelancer: 6 Tips To Help Get You Started

Working As A Freelancer: 6 Tips To Help Get You Started

Freelancing isn't for everyone. It takes time, dedication, and a whole lot of hard work to succeed as a freelancer. With all the uncertainties that come with trying to establish oneself in this type of business, it can often be daunting for those who are considering...

Why Your Medical Practice Needs a Strong Online Reputation

Why Your Medical Practice Needs a Strong Online Reputation

Unsurprisingly, the medical field has become increasingly competitive, with several businesses vying for market share in local, regional, and national markets. Many medical practices need to realize how important their online reputation can be as they seek to stay one...

The Benefits of Working with an Experienced Tradesman

The Benefits of Working with an Experienced Tradesman

Approximately ⅔ of all homeowners opt to hire a tradesman for home improvement projects. If you’re considering doing the same, it pays to find the right person for the job. A tradesperson can make all the difference in achieving excellent results and an efficient...

Share This