How do you create a Google Maps map for your WordPress site?

Find out how you can create a Google Map for your WordPress site to provide a reference point or show the location of your business.
create a Google Maps map
Table of Contents

If you own a brick-and-mortar business, you may need to pinpoint a specific location, provide a landmark, suggest routes, or even plan an event. In any of these cases, havingan interactive map is essential for pinpointing the location you want to highlight. The best interactive map in terms of impact and popularity is, of course, Google Maps. Many websites have already adopted it, often to supplement business contact information.

If you want to display a map interactively and visually, this tool offers a real advantage. In this article, we’ll tell you everything you need to know about how to create a Google Map for your WordPress site. You’ll be able to see your dream of having a map on your WordPress site come true.

How can I successfully embed Google Maps without a WordPress plugin?

Thanks to Google, it's easy to embed a map, no matter which website you want to use. All you need to do is use the iframe code, which you can access on the map via the "Share or embed map" option.

To add a map to your WordPress site without a plugin, go to Google Maps first. Next, enter the address you want to display on the map. Once you’ve completed this step, Google will update the map to show the correct location.

You can then browse the left-hand menu—which appears when you click the button—to find the “Share or embed map” option . You can also click the “Share” option in the left-hand column. A pop-up window will appear above Google Maps.

You can click the "Embed a Map" tab and then "Copy HTML Content" to retrieve the entire "iframe" HTML code.

How do I successfully embed a Google Maps map on WordPress?

Whenever you want, you can change the size of the map using the selector to the left of the HTML code in order to copy the code. Once you've done that, open the WordPress page or post where you want to display the map.

A hand holding a smartphone with an open window displaying a map

How do I enter the Google Maps code using Gutenberg?

When you use Gutenberg to edit your content, you need to add the "Custom HTML" block exactly where you want to insert Google Maps into your post or page. Then, paste the HTML code you copied earlier into the editing area of the Custom HTML block.

To view the map on your website, you'll need to save your changes or publish the content. Before publishing the article or page, you can also preview the map.

How do I successfully insert Google Maps HTML code using the WordPress editor?

When you usethe standard WordPresseditor —via a plugin that lets you edit your content using the classic WordPress editor—the process is a little different. Once you’re in the editor, the first step is to switch the editing mode to “Text.”

To do this, click on the tab with the same name. Next, copy the Google Maps “iframe” HTML code. To view the map at the same time, you’ll need to publish or update the content. You can also click Preview to see how your Google Maps will appear.

How do I insert HTML code using the standard WordPress code editor?

It's fairly easyto manually embed a Google Map, and it works just fine. However, this method doesn't offer many options for customizing the Google Map.

What’s more, if you plan to frequently display Google Maps on your website, this can quickly become very time-consuming. To address these two issues, there are WordPress plugins available that can help you easily and quickly integrate more advanced and customizable Google Maps into your site.

How do I embed Google Maps using a WordPress plugin?

Whenever possible, it is recommended that you embed a Google Map using a WordPress plugin. This method provides additional options that allow you to customize your Google Map more effectively. This will help you simplify both the display and management of multiple Google Maps on a website.

How do I get a Google Maps API key?

This is a necessary step for any extension that uses Google Maps. You must create a Google Maps API key. This key allows you to access various Google features and data—such as Google Maps—from other applications.

To obtain your Google Maps API key, you must have a billing account on the Google Cloud platform. To ensure you can use the Maps service with confidence, Google credits your billing account with $200 USD each month.

A small amount of your credit is used each time you use the Maps service. However, unless your website has insane traffic, you’ll never use up the $200 in credit offered by Google. So when you create a billing account, you don’t need to worry about being charged anything.

How do I create a billing account on Google Maps Platform?

To successfully create a billing account on Google Maps Platform, you must go to the Google Maps Platform website. To do this, search for either “Get Started” or “Start Now,” and then click one of the buttons.

Google Maps Platform Interface

You must then sign in to the Google account you plan to use to create the API key, as well as the billing account. Select your country, then accept the terms of service to proceed through the setup process by clicking the Continue button.

Depending on the type of account you're interested in, you'll then need to provide either personal or business information. At this step, you can choose between a personal or business account.

You will also be asked to select a payment method for your billing account. This is a required step, even though it will actually be used only in extremely rare cases. In fact, you would have to exceed the monthly credits provided by Google, which would be surprising.

By clicking "Start Free Trial," you can then complete the account creation process. But first, you'll need to provide your personal and professional information, as well as your payment information.

The step of obtaining and activating the API key

Once your account is created, you’ll be asked to select the services you want to use. If you only need Maps, simply check “Maps” to use the Google Maps API. However, if you need other services, you’ll need to check those as well at this step. Next, click “Activate” to generate the API key, then activate it.

As soon as the API key is created, a window will appear with your key in a box. You need to copy the key and save it. You will likely need it to enable the Google Maps service on extensions that use this service.

How do I create a Google Map using the WordPress Google Maps plugin?

The most widely used Google Maps plugin for integrating Google Maps into WordPress is WP Google Maps. It has many advantages, as it offers a wide range of options for customizing a map.

WP Google Maps Plugin Interface on WordPress

It allows you to embed fully responsive maps that display perfectly on both tablets and smartphones. The themes are also pre-designed to enable you to quickly deploy an interactive map. Available in a free version, this app also offers a paid version for either 3 websites or an unlimited number of websites.

To get it, you need to install and activate the WP Google Maps plugin right away from the plugins directory. To access it, go to “Plugins” and then “Add New” in the left-hand sidebar of the WordPress admin panel. Use the search field to find the “WP Google Maps” plugin, then click “Install Now” and “Activate.”

Once the installation is complete, you'll have access to a "Maps" submenu. Go to the settings in this submenu. You'll be redirected to a page where you'll need to open "Advanced Settings" to enter your API key, which you obtained earlier.

It will be in the first field labeled "Google API Key" in the very first "API Keys" section of the advanced settings. You must then save the change by clicking the "Save Configuration" icon.

This option is located at the bottom of the settings. After that, you'll need to return to the extension's main page. To do this, click the "Maps" submenu to view the maps you've created.

How do I edit a Google Map on WordPress?

You will then need to edit the map you created by clicking “Edit.” You’ll need to select Google Maps from the two options provided. Once on the interface, there are many options available. In the field for the map’s name, change the name and then enter the address you want to include in the “Address / GPS” field . Next , click “Add a marker” and copy the ShortCode for your Google Maps map. Before doing so, make sure you’ve saved your Google Maps map by clicking the “Save Map” button .

Creating a Google Map: A Summary

An interactive Google Maps map offers numerous benefits for your website. From improving the user experience to increasing your revenue, it’s an avenue worth exploring to grow your business. In this article, you’ll learn everything you need to know about the process of creating a Google Maps map for a WordPress site.

The WordPress agency that designs and builds high-quality, long-lasting websites.