Black Friday50% off every Pro template and membership with code50% off with Ends in 03days23hrs52min16secShop the sale →

How to Add Google Map to WordPress

Introduction Do you want to add a Google Map to your WordPress site to make the information clearer? If your answer is yes, we will provide you with 2 methods to do that in today’s blog: Embedding a Google Map…

How to Add Google Map to WordPress

Introduction

Do you want to add a Google Map to your WordPress site to make the information clearer? If your answer is yes, we will provide you with 2 methods to do that in today’s blog:

  • Embedding a Google Map in WordPress manually
  • Adding a Google Map via a plugin

Now, let’s explore each method one by one.

Ways to add Google Map to a WordPress website

Embedding a Google Map in WordPress manually

This is one of the easiest ways to insert a Google Map in any post, page, or template. All you need to do is go to the Google Maps website, then enter the name or address you want to add in the search bar. After that, click on the Share icon.

embed a Google Map in WordPress manually 1

A Share popup will appear on the screen. You can see 2 sections: send a link and embed a map. Let’s select Embed a map.

You can change the size of the map by clicking on the Medium button. There will be 4 options for you to choose: Small, Medium, Large, and Custom Size. After choosing the map size you need, simply click the Copy HTML button to copy the embed code.

embed a Google Map in WordPress manually 2

Now, go back to your WordPress admin dashboard and add the code in the post, page, or template you want.

For example, we want to add it to a new post, so we just go to Posts -> Add New. Next, we select the Text part to paste the map code.

embed a Google Map in WordPress manually 3

When we go back to the Visual section, we will see a Google map displayed with the size we chose. After finishing the content of the post, don’t forget to press Publish for new posts and Update for published posts.

embed a Google Map in WordPress manually 4

Using a plugin to add a Google Map to WordPress

If you just want to insert a map in one location of your site, the method above is suitable for you. However, if you want to embed Google Maps in most of your posts, it’s a good idea for you to use a plugin to do that.

Actually, there are many WordPress Google Map Plugins on the market, but we will show you how to use MapPress Maps for WordPress.

First of all, you need to install this plugin by choosing Plugins -> Add New. After that, search for the plugin’s name in the search bar, then press the Install Now -> Activate button.

Using a plugin to add a google map 1

After activating the MapPress plugin, a Welcome popup will appear asking you to confirm some information. In order to add the Google map to your site, let’s choose the Google section, then click on the Next button.

Using a plugin to add a google map 2

Now, you need to create a Google API Key by pressing Get an API Key.

Using a plugin to add a google map 3

A new tab will appear to help you get a Google Maps API Key. Simply choose the Create Project box.

Using a plugin to add a google map 4

In this part, you need to tick the box to agree to the Google Cloud Platform terms of service. Besides that, don’t forget to set the Country of residence. Then, let’s press on Agree and continue to move on to the next step.

Using a plugin to add a google map 5

Now, you are able to create a new API Key by going to Create Credentials -> API key.

add google map to wordpress 10

You can freely change the name of the API key so it is easy to remember. Moreover, in the application restrictions section, let’s choose the None option. Don’t forget to save all your changes. Finally, you can get your API key in the box API Key.

Using a plugin to add a google map 6

Now, go back to the admin area. To add the Google API key, go to MapPress -> Settings. In the Basic Settings part, you can paste the API key you copied into the box. Of course, you need to press the Save button to store your settings.

Using a plugin to add a google map 7

Besides the basic settings section, there are more options for you to set up your maps, such as styled maps, POI settings, clustering, and more. Thus, you are able to customize the map and save the settings in your own way.

Conclusion

All in all, with the instructions above, we hope that you are able to add a Google map to your site smoothly and effectively. If you want to contribute more information or have any questions, please leave your comment below. Furthermore, don’t forget to access our Free WordPress Themes to get more responsive and attractive ones for your site. Thanks for reading.

Build it with a template

Start from a finished design: Joomla templates, WordPress themes or the AI-ready block themes. Every template has a free version and a live demo.

Stuck on a template?

Pro customers can open a ticket; everyone can read the documentation.

Free download

We'll send the link, setup tips and update notices, and you can reach us anytime through our AI assistant and contact form.

The download starts at once. We email you the link and ask you to confirm your address. Privacy policy.