Embedding a Google Map

Adding a Google Map to a page on your website can help people visualize the location of your nonprofit’s office, program or event in a way that’s interactive. There’s no limit to the number of maps you can use, and even better, there’s no cost!

We’ll show you how to create a simple Google Map of a single location and the process of embedding it within a page on your site. For more advanced needs, you can also learn how to create and add a map with multiple locations.

Create a Google Map of a Single Location

The first step is to generate a map of the location, which doesn’t happen on your website. Visit the main Google Maps page and search for the address you’d like to show.

Click the blue “Share” icon.

Share Google Map of a Single Location

A popup will appear. Click the “Embed a map” option at the top of the window. This will display some code that starts with “<iframe scr=…”. You can also choose a size for your map at this point, though the default Medium size works well in most cases.

Click the “Copy HTML” link on the right side of the popup.

Embed a Google Map using HTML

Add Your Map to a Page

Once you’ve copied the HTML code for the Google map, you’ll paste this code into the page where you’d like to map to show up. Make sure you’re logged into your site and open up the editing view of the page first.

  1. In the location where you want to add the map, add the Custom HTML block.
  2. Paste the code into the new block.
  3. Click Preview at the top of the block to see if the map displays properly.
Add Google Map using Custom HTML block

Be sure to take it for a test run by moving the map around and making sure the location is correct for people who need directions.

If everything looks good, save your work or go ahead and publish or update the page with your new map.

Create a Google Map with Multiple Locations

If you have more than one location that you’d like to include in your Google map, the steps are slightly more advanced. Visit the Google My Maps page, sign in with your Google account, and click the “Get Started” button.

  1. In the top left, click the red “Create a New Map” button.
  2. Where it says “Untitled map” in the top left, click to customize the title and description.
  3. Now you can add places to your map, change what the base map looks like, and adjust the layers and icons.
  4. When your map is complete, click the three dots icon to the right of your map’s title and select “Embed on my site.” Copy the HTML code that appears and click OK.
Embed Google Map with multiple locations

Add Your Map to a Page

Once you’ve copied the code for your map, you’ll embed it in a page on your website using the same steps outlined above.

For additional tips and instructions on editing a map with multiple locations, please visit Google’s My Maps support page.

Still Have Questions?

Reach out to us within your Dashboard. Log into your website and then fill out the Website Support form. You’ll hear back from one of Wired Impact’s team members within one business day.