How to embed Google Maps in WordPress

13 min read Last Update Date: 
How to embed Google Maps in WordPress

Adding a map to your WordPress website is a five-minute task. It helps build trust, reinforces your local SEO, and makes it easier to buy from you. But making sure it displays properly and has the features you need can take hours. And if you forget to account for mobile users, you might not realize the map is clipped on small screens.

This guide walks you through three options for adding maps to your WordPress site: a native iFrame, a map plug-in, and a free widget. We’ll also cover issues and trade-offs so you can decide which is best for you.

Three options for embedding a map in WordPress

MethodAPI key requiredCostMobile-responsiveMulti-pin supportSetup time

Native iFrame

No

Free

No; fixed width/height

No

About 5 minutes

WordPress plug-in

Yes; free for 10,000 map loads/month

Free for core features; paid for advanced features

Depends on plug-in

Yes; often paywalled

About 15–25 minutes

Jotform Google Maps Widget

Yes; free for 10,000 map loads/month

Free widget; includes advanced features

Yes

Yes; free

About 15 minutes

Option 1: Use a native Google Maps iFrame

The Google Maps iFrame option is the simplest and fastest way to get a map on your website. You look for your business on Google Maps, click Share, copy the code, and paste it onto a WordPress page. We provide a step-by-step walkthrough here so you can get it running quickly.

The simplicity ends up being a limitation in itself. You can’t customize the way the map looks, add multiple pins, or display additional information on top of the default view. You also have to experiment with map sizes and your WordPress page layouts to make sure it’s usable on mobile.

How to embed a Google Maps iFrame

Before you start, register your business in the Google Business Profile platform. This allows you to display your full information in Google Maps, including opening times, reviews, or your food menu. If you’re just pointing to an address that doesn’t belong to you or a landmark, skip to the first step.

Get the embed code from Google Maps

  1. Go to google.com/maps and search for your business name or address.
  2. Google Maps page showing route information and a map of Los Angeles
  1. Confirm that you selected the correct pin by inspecting the business details on the left side of the screen.
  2. Google Maps place panel of Griffith Observatory
  1. Click Share.
  2. Google Maps location details with the Share option highlighted
  1. A popup appears on the screen. Click the Embed a Map tab.
  2. Google Maps share dialog with the Embed a map tab selected
  1. A preview of what the map will look like on your website appears. It’s set to medium size by default; you can choose to display a small or large map, or even select a custom size by using the dropdown at the top left.
  2. Google Maps embed dialog displaying an iframe code snippet
  1. After selecting the size, click Copy HTML. This copies the iFrame code snippet to the clipboard.
  2. Google Maps embed code dialog with the Copy HTML button highlighted

Embed it in WordPress (Block editor/Gutenberg)

  1. In WordPress, open the page or post where you want to place the map.
  2. Click the + block inserter icon, type HTML to filter, and click Custom HTML to add the block to the page.
  3. WordPress editor adding a Custom HTML block to the Find us page
  1. In the new block, click Edit HTML.
  2. WordPress Custom HTML block with the Edit HTML option highlighted
  1. Paste the iFrame code into the popup. The preview displays on the right side. Click Update to finish.
  2. WordPress HTML editor showing embedded Google Maps iframe code and Update button
  1. The page now displays the embedded iFrame map. Click Publish or Save to make it live on your website, and view the page to see how it looks.
  2. Published WordPress page displaying the embedded Google Map under Find us

If this doesn’t match how you edit pages in WordPress, see how to add HTML using one of these editors:

Option 2: Install a dedicated WordPress map plug-in

Compared with the Option 1, a dedicated WordPress plug-in adds more customization and functionality. You install it on your site the same way you install any other plug-in, create and paste your Google Maps API key into the settings, and then add the map element to a page.

This option adds some complexity. Getting the Google Maps API key requires creating an account in Google Cloud Platform, setting up a billing account, and navigating a technical setup flow. Also, the map plug-ins work on a freemium basis, offering a decent free plan with basic features but gating the best capabilities behind a one-time license or an annual fee.

You’re adding to your plug-ins, so test your website’s speed after you finish the setup. If you’re hosting your site on a low-cost plan, too many plug-ins can slow everything down considerably, affecting user experience and potentially causing visitors to leave.

Making the map functional for mobile users depends on the plug-in and how you configure it. For instance, WP Go Maps recommends setting specific height and width values to avoid a cramped implementation.

How to set up a WordPress map plug-in

For this example, I’ll use one of the most popular Google Maps plug-ins for WordPress, WP Go Maps.

Set up WP Go Maps

  1. Install and activate WP Go Maps.
  2. WordPress Plugins page showing WP Go Maps ready to install
  1. Click Skip Introduction to finish setup.
  2. WP Go Maps welcome screen with Skip introduction highlighted
  1. Click Settings on the left-side menu.
  2. WP Go Maps dashboard with Settings selected in the sidebar
  1. In the General tab, select Google Maps as the map engine.
  2. WP Go Maps General settings with Google Maps selected as the map engine

Get your Google Maps API key

To pull the map data from Google’s platform, you first need to register for an account to get your API key.

  1. Go to the Google Maps Platform website and create an account.
  2. Google Maps Platform homepage with the Create an account button highlighted
  1. You will be taken to a configuration flow in the Google Cloud Platform. Create a new billing account by setting a name, country, and currency.
  2. Google Cloud billing setup page for entering account name, country, and currency
  1. Add your contact information and payment method. When finished, click the Submit and Enable Billing button.
  2. Google Cloud billing profile showing contact information, payment method, and Submit and enable billing

    With this option, you get 10,000 free map loads per month; if you go beyond that, it’s $7 per 1,000. If you stay under the limit, your card is never charged, but the billing account is required either way. (In March 2025, Google replaced its old $200 monthly credit with a separate free allowance for each API; many older tutorials still cite this credit, but it no longer exists.)

  1. Google will ask you a few questions about how you plan to use the Maps service. Answer them and click Submit.
  2. Google Cloud Maps onboarding form asking about intended use, business role, and preferred features
  1. Click Keys & Credentials on the left-side menu.
  2. Google Cloud console with Keys & Credentials selected from the left sidebar
  1. Click the Create Credentials dropdown, followed by API Key.
  2. Google Cloud Credentials page with Create credentials menu and API key option highlighted
  1. On the modal that appears, you can set the name and permissions of your new API key. You don’t have to change these settings; scroll all the way down and click Create.
  2. API key creation panel showing restriction settings and the Create button
  1. Copy the API key.
  2. Google Cloud confirmation panel displaying the newly created API key for copying

It’s important to restrict your key before your site goes live. An unrestricted key in your page’s source can be copied and used to run up your bill. Follow Google’s API key best practices to lock it to your domain.

Finish setting up the plug-in in WordPress

  1. Go back to the WP Go Maps plug-in settings page in your WordPress installation and paste the API key in the Google Maps API Key field. Click the Save Settings button after you do.
  2. WP Go Maps settings with the Google Maps API key field and Save Settings highlighted
  1. Click Maps on the left-side menu.
  2. WordPress sidebar with the WP Go Maps Maps menu selected
  1. The plug-in has already created the first map for you. Click the Edit button to see it.
  2. WP Go Maps dashboard showing the default map with its Edit button highlighted
  1. This is where you configure how your map will display on your website. Click the Markers tab to start adding your business.
  2. WP Go Maps map editor with the Markers tab selected for adding locations
  1. Click the three-dot menu and delete the predetermined map marker.
  2. WP Go Maps marker list showing the actions menu and Delete option for a California marker
  1. Click Add Marker at the top.
  2. WP Go Maps editor with the Add Marker option selected
  1. Search for your business’s address and select it once it appears on the list.
  2. Marker editor showing address search results for selecting a business location
  1. Click the Add Marker button to finish.
  2. WP Go Maps marker editor with the Add Marker button highlighted
  1. Your business is now marked on the map. You can customize zoom level and other visual settings by going back and clicking the Settings button. Remember to click Save Map at the bottom of the screen when you finish.
  2. WP Go Maps editor with the Save Map button highlighted after configuring the map
  1. When you’re ready to place your map on a page on your website, click the Get Shortcode button at the bottom left. This will copy the shortcode onto your clipboard.
  2. WP Go Maps editor with the Get Shortcode button highlighted for copying the map shortcode
  1. Go to the page where you want to add your map, click to add a new block, and type Shortcode to filter the options. Click on it once it appears.
  2. WordPress editor adding a Shortcode block to the Find us page
  1. Paste the shortcode into the input field and click Publish or Save.
  2. WordPress Shortcode block with the map shortcode entered and Save button highlighted
  1. When you visit the page, the map displays your marker with the settings you selected.
  2. Published Find us page displaying the configured Google Map with its location marker

The Jotform Google Maps Widget is a free and fully customizable map that doesn’t require installing a plug-in or paying a license fee. With it, you can

  • Add one or multiple locations that display on the same map.
  • Choose the map view, including road map or satellite.
  • Adapt to a light or dark theme, with corner radius control for boxes.
  • Set the map’s size, layout, and zoom level.

Compared with native iFrames, it’s customizable, allows multiple pins on the same map, and is responsive out of the box. Compared with a plug-in, it doesn’t weigh down your website and doesn’t require a paid plan to unlock all its features.

Despite these advantages, the Jotform Google Maps Widget still requires a Google Maps API key. You’ll have to go through the setup steps and create a billing account with Google.

How to add the Jotform Google Maps Widget to your website

  1. Visit the Jotform Google Maps Widget page. In most cases, the configuration tool loads automatically; if it doesn’t, click Create New Website Widget to begin.
  2. Jotform Google Maps Widget page showing the interactive map configuration interface
  1. Follow this guide on how to get your Google Maps API key. It covers all the steps detailed in Option 2, as well as how to restrict your key to keep it safe. (Remember that Google Maps allows 10,000 free map loads every month. Every 1,000 loads after that cost $7.) Once you finish, paste your Google Maps API key into the input field.
  2. Jotform Google Maps Widget with the Google Maps API key field highlighted
  1. Adjust the general settings to your liking. This includes how the map should look and how many locations you want to add to it. The screenshots here use Jotform’s San Francisco and Canada offices to show a multi-pin map, but you can add a single location or as many as you need. Click Continue when done.
  2. Jotform Google Maps Widget settings showing locations, map style, and Continue button
  1. Change style settings such as theme, font, or custom CSS. Click Continue when you’re done.
  2. Jotform Google Maps Widget style settings with theme options and Continue button
  1. Customize the layout and extra features in this final step. Click Try It on Your Website for Free when you’re ready.
  2. Jotform Google Maps Widget layout settings with Try It on Your Website for Free button
  1. Sign up for a free Jotform account or log in to an existing one. The embed code appears after you finish logging in. Click Copy Code.
  2. Jotform Google Maps Widget embed popup with the Copy Code button highlighted
  1. Add the embed code to your page with a custom HTML block, following steps 7–11 from Option 1: Insert the block, paste the code, then click Publish or Save.
  2. Published WordPress page displaying the embedded Jotform Google Maps Widget with multiple locations
  1. Open the page on your phone. Unlike with the native iFrame in Option 1, the widget resizes to fit the screen on its own, so the map that got clipped on mobile there displays in full here.
  2. Mobile view of the Jotform Google Maps Widget resized to fit the phone screen

Grow your WordPress site with smart, serverless widgets

Building smart features into your website usually means paying for new plug-ins or wrestling with code. Jotform helps you skip all that: Along with the Google Maps Widget, the Jotform website widgets directory offers over 150 free, no-code widgets, configurable by just pasting a simple HTML snippet on your website.

These options pair well with the Maps widget:

  • Business Hours Widget: This widget shows opening hours, including a live open or closed status you can place next to your map, so visitors that find you on the map know instantly if you’re open. No API key required.
  • Appointment Booking Widget: Add a booking feature to your website so people can schedule time with you. This widget supports adding availability, listing your service types with duration and pricing, and accepting reservations without needing an extra tool.
  • FAQ Widget: This widget lists answers to frequent questions in a searchable accordion. Doing the same in WordPress is easy, but getting the polished experience this widget offers would mean dealing with code or installing yet another plug-in.

If you are on an entry-level WordPress hosting plan, plug-ins consume essential server resources, slowing down your website and delivering a poor user experience to your visitors. Jotform’s widgets run on Jotform’s infrastructure, so the load isn’t handled by your website. This frees up server resources, making your website faster and easier to use.

Looking to level up your WordPress site? Check out

  • Our How to use WordPress guide to learn how to build a professional website without investing in a web design course
  • Jotform’s WordPress integration, which streamlines your data collection with automation, payments, and advanced features in a single platform

FAQs

Not for every method. The iFrame code snippet you get from Google Maps (via Share and Embed a Map) doesn’t need a key; it’s free and has no usage limits, but you can’t customize it extensively. Customizing the appearance and functionality usually means you need an API key, because most plug-ins or widgets run on top of the Google engine. That requires a Google Cloud project and a billing account, even if your traffic is within the free monthly limits.

Yes, it can slow down your website. An interactive Google Map pulls a large amount of JavaScript, anywhere from 100 KB to 2 MB. In one independent test, a single embed cost 14 percent in page speed score, increasing the time until the website was ready to interact with by 6.5 seconds. To prevent slowdowns, load the map’s script only on the page that uses it, lazy-load the iFrame, or add a click-to-load placeholder image.

Yes, but not with the basic iFrame embed. For multiple markers, build a map in Google My Maps: Drop your pins, set it to public, copy the embed code, and paste it on your website. Even though you can drop as many as you want, you can’t style the map or add custom detail panels. If you want multiple pins and customization features, the Jotform Google Maps widget does the job (it just needs your Google Maps API key).

Yes. Many WordPress Google Maps plug-ins have usable free tiers that cover basic maps, although advanced features are usually reserved for the paid plan. If you prefer not to install a plug-in, the native Google Maps iFrame and Google My Maps are both free. The Jotform Google Maps widget is also free to use, adding customization and multi-pin maps that don’t increase server load, but it still requires a Google Maps API key.

This article is for WordPress site owners, local businesses, real estate agents, and event planners who want to compare ways to add an interactive, mobile-friendly map with embeds, plug-ins, or customizable widgets.

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Podo Comment Be the first to comment.