paint-brush
How to Add Google Map in Divi Themeby@bloggingidol
140 reads

How to Add Google Map in Divi Theme

by BloggingidolAugust 13th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The 4 easy ways to add Google Map to the Divi theme website are as follows: Embed Google Maps without an API key. Embed a fully interactive Google map within your website by pasting in embedded code that you can from any Google map. Use Google Map Plugins that provide customized styles to your Google maps, and that too for free. Google charges for this service but offers a lot more value than the standard maps. The service includes embedding static or dynamic maps, displaying street views and adding different routes and other nearby places.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - How to Add Google Map in Divi Theme
Bloggingidol HackerNoon profile picture

Having a Google map on your website is the best and easiest way to showcase your location. A map not only provides directions to your physical whereabouts but is also the most crucial step in performing Local SEO. I have seen Divi users struggling to include Google maps into their website.


But, don’t you worry. The 4 easy ways to add Google Map to the Divi theme website are as follows:


  • Embed Google Maps without an API key
  • Embed Google Maps with API key
  • Use Divi Maps Module
  • Use Google Map Plugins


If you’d like to see some cool plugins that provide customized styles to your Google maps, and that too for free? Then hang on until the end of this article.

Add Google Map in Divi Theme

Embed Google Maps without an API key

You can embed a fully interactive Google map within your website by pasting in embedded code that you can from any Google map. Go to Google Maps and search for the location you want to create a map for and then zoom on the location until you see the exact map you want.


In this example, I’ve searched for the San Diego Zoo. Select Share from the list of options on the left.


In Divi add Google Map onto your website. Just paste the embedded code that you acquire from Google Maps.


For doing so, jump over to Google Maps and look for the location you’d wish to create a map for. Then zoom onto the location until it is visible with your location.


In this particular example, I have taken London Bridge. I have selected the exact location of the London Bridge from the options given on the left-hand side.


Following that, you will have to click on the share button.


After clicking on the share button, a window will open where you have to select “Embed a Map”. Once opened, copy the HTML code or simply select the code manually.


Next, paste the HTML code into your content. Meaning, paste it on your page or post in your Divi website. To do so, click on the Plus Icon and select Custom HTML.


After selecting Custom HTML you will see an HTML window, just paste the code into that window.


Following this activity, click on Preview to verify if Google Maps has been accurately embedded into your post.


This way you can easily embed a Google Map onto your Divi-themed website absolutely free without any hassles. Of course, this can also be done for your own Contact page as well.

Embed Google Maps with an API Key

The key difference here against having embedded a Google Map without an API key is that this service is charged.


It does give you a lot more features than a standard map of your location. This service includes embedding static or dynamic maps, displaying street views, and adding different routes and other nearby places. Google charges for this service but offers a lot more value than the standard maps.


For enabling this service, you will need to get to the Google Maps Cloud Platform and click on Get Started.


If you are doing it for the first time, you will be asked to verify your country and agree with the terms of service.


After pressing Continue you follow the steps to create your payment profile and complete your billing activity.


Once done, you will see a window where you will have 3 choices to use with the Google Maps Cloud Platform.


  • Maps –It displays maps with both overhead and street views.
  • Routes – This lets your users choose their path from any location.
  • Places – Always show users other places to visit nearby your location.


After completing the entire setup, you will get an API key that works with almost all the themes and works with the Divi theme.


This is another way to add Google Maps to your Divi website.


Now, we will see how to add a map in the Divi theme using the API key.

Use Divi Map Module

Divi themes include a map module from where you can directly embed a Google map on your website.


The module has features to add pins, Google API key, and other styling options with numerous controls.


For example, you can see the map in the below screenshot.


Remember, you have to put the Divi map API key. Until and unless you do not add the API key in Divi, Google Maps will not load properly. For doing so, open General Settings from Divi Theme Options.

By adding the API key in the Divi Map module the map will showcase the website.


For adding a Fullwidth map to your Divi website you will first have to insert a new module. To insert a new module, go to the Divi Builder and click on Insert Module(s).

Once you click on the Insert Module(s) you will get lots of options. Locate Fullwidth Map and select it.

For additional controls and styling options like mouse settings, color, offset, etc. of your Full-width Map, you can go to the Design Tab under the Fullwidth Map Settings.


Use Google Maps Plugins

Very similar to the above method, this is another way to bring Google Maps into your website. The plus point of using Google Maps Plugins is that they are simple and easy to include into your website and give lots of controls and styling options for you.


Not all of them are free, but I have curated a few completely free plugins to use.


The plugins mentioned below don’t just provide you with accurate location but also give you access to powerful features like adding filters, getting street views, placing custom icons, and much more that match your website’s requirements.


MapPress Maps


MapPress Easy Google Maps is the most popular free Google maps plugin. It allows for easily adding a Google map to your Divi website. You can embed a map in a post or a page. It also allows for using a shortcode to insert the map within the post.


Unique Features of MapPress


  • MapPress plugin is based on the latest Google API
  • It supports custom post types
  • You can add markers to any address, place, or latitude/longitude coordinates
  • MapPress allows the creation of custom text and HTML
  • Street view is supported
  • Readers can get driving, walking, and bicycling directions right in your blog
  • You can create multiple maps in a single post or page
  • MapPress provides real-time traffic

Conclusion

So, these are the 4 different ways to add Google Maps to the Divi theme website. We all know that Google Map is an incredible online tool to showcase your location, display directions of your business, and improve the website’s local SEO. Google maps help in building your online credibility and reputation. That in turn increases trust in your customer’s minds.


Adding Google maps to a Divi website is super easy. Try out any of the 4 methods and get an interactive map on your website.