If you just need a simple Google Map, then this Embed Google Map Module will do the job nicely. This will embed into your Divi’s site easily without having to worry about anything else.
However, old method using copy/paste method does work for now, however we cannot confirm this method is stable or will be deprecated in the future as well(Google is known to change things):
Obtain a Google embed code
- Go to Google Maps
- Enter the business address in the search bar, then click the search button
- Click on the Share icon
- Choose "Embed map"
- Select the size of the map from the drop down
- Select and copy the HTML iframe embed code
Even thought having API for embed is free and has unlimited usage(https://developers.google.com/maps/documentation/embed/usage-and-billing).
You can read more on how to create the free API for the embed google map: https://developers.google.com/maps/documentation/embed/get-api-key
Make sure Maps Embed API in the Library is enabled as well.
Google Map API Key The module uses the Google Maps Embed API and requires a valid Google API Key to function. Before using the module, please make sure you have added your API key inside the Divi Theme Options panel.
Enter an address for the map, and the address will be geocoded and displayed on the map. You can simply type in an address in a standard format, such as “1235 Sunny Road, Some City, State, 88343.”
The Zoom level of the map.
This will change the label of the module in the builder for easy identification. When using WireFrame view in the Visual Builder, these labels will appear within the module block in the Divi Builder interface.
Within the design tab you will find all of the module’s styling options, such as fonts, colors, sizing and spacing. This is the tab you will use to change how your module looks. Every Divi module has a long list of design settings that you can use to change just about anything.
Use the advanced options to give your text module custom CSS ID’s and Classes. Add some custom CSS for advanced styling and designate the module’s visiblity on certain devices.