How to Add Google Maps in WordPress (Step-by-Step Guide)
Adding a Google Map to your WordPress website is a great way to help your visitors find your business, office, or any location easily. Whether you run a local shop, blog, or service website, embedding a map improves user experience and makes your site more interactive. WordPress offers multiple ways to add Google Maps — from simple manual embeds to advanced plugins and page builders — so you can choose the method that best fits your needs.
Here’s a complete step-by-step guide for all methods:
Method 1: Using Google Maps Embed Code (Manual Method)
-
Go to Google Maps
-
Open Google Maps in your browser.
-
Search for the location you want to display.
-
-
Get the Embed Code
-
Click the Share button → select Embed a map tab.
-
Choose the map size (Small, Medium, Large, or Custom).
-
Click Copy HTML to copy the iframe code.
-
-
Add to WordPress
-
Go to Dashboard → Pages/Posts → Edit.
-
Switch to HTML / Code Editor or use a Custom HTML block in Gutenberg.
-
Paste the iframe code → Publish/Update.
-
Pros: Simple, no plugin needed
Cons: Limited customization
Method 2: Using Gutenberg Google Maps Block
-
Open Page/Post Editor
-
Go to the page or post where you want the map.
-
-
Add Google Maps Block
-
Click + → search for Map or Google Maps block.
-
Paste the Google Maps URL (from Google Maps → Share → Copy Link).
-
-
Adjust Map
-
Set height, width, and zoom (if block allows).
-
-
Publish the Page
-
Click Publish/Update.
-
Pros: Easy, Gutenberg native
Cons: Limited features
Method 3: Using a WordPress Plugin (Advanced Features)
Recommended Plugins:
-
WP Google Maps
-
MapPress Maps for WordPress
-
Google Maps Widget
Steps (WP Google Maps example):
-
Install Plugin → Dashboard → Plugins → Add New → Search → Install → Activate.
-
Create a Map → Maps → Add New Map → Enter location and markers.
-
Adjust Settings → Width, height, zoom level, map type.
-
Get Shortcode → Copy the generated shortcode.
-
Add to Page/Post → Paste shortcode → Publish/Update.
Pros: Fully customizable, multiple markers
Cons: Adds extra plugin load
Method 4: Using Elementor Page Builder
-
Open Elementor Editor → Edit page with Elementor.
-
Add Google Maps Widget → Drag & drop it into section.
-
Configure Map → Enter location, zoom, height, width.
-
Publish → Save and preview.
Pros: Drag-and-drop, easy design
Cons: Only works with Elementor
Method 5: Using Google Maps API (Advanced Customization)
-
Get API Key → Google Cloud Platform → Create project → Enable Maps JavaScript API → Create API Key.
-
Add API Key in WordPress → Some plugins require API key for advanced features.
-
Create Custom Map → Use plugin or JavaScript for multiple markers, info windows, or custom styles.
Pros: Fully customizable, professional
Cons: Requires technical setup