WordPress Contact Page Map: 5 Ways to Embed Google Maps
Published on January 15, 2025 • 9 min read
A contact page without a map is like giving someone your address without directions. Whether you're running a local business, restaurant, medical practice, or consultancy, adding an interactive Google Map to your WordPress contact page makes it dramatically easier for customers to find you.
43.3%
Of all websites use WordPress - making it the world's most popular CMS. That's over 800 million sites.
This guide covers 5 different methods to add maps to WordPress, working with Gutenberg (Block Editor), Classic Editor, popular page builders, and widgets. Choose the method that fits your setup.
Before You Start
First, generate your map embed code:
- Visit the Maps Generator tool
- Enter your complete business address
- Customize size (600x450px works well for contact pages)
- Set zoom level to 14-15 for street-level detail
- Click "Generate Map" then "Copy" the embed code
Now you're ready to add it to WordPress using any of these methods:
Method 1: Gutenberg Block Editor (Recommended)
Difficulty: Easy
Best for: WordPress 5.0+ with the block editor (Gutenberg)
Step-by-Step Instructions:
- Edit your Contact page (Pages → All Pages → Contact)
- Click the + button where you want the map
- Search for "Custom HTML" and select it
- Paste your map embed code into the HTML block
- Click "Preview" to see your map in action
- Click "Update" to publish
Gutenberg Tip: Add a "Heading" block above the map with text like "Visit Us" or "Find Our Location" for better context.
Styling Your Map in Gutenberg:
- Use the block toolbar to align the map (left, center, right)
- Add spacing using the block settings (Padding/Margin)
- Wrap it in a "Group" or "Column" block for advanced layouts
Method 2: Classic Editor
Difficulty: Easy
Best for: Sites still using the Classic Editor plugin
Step-by-Step Instructions:
- Edit your Contact page
- Switch to the Text tab (not Visual)
- Find where you want the map to appear
- Paste your embed code
- Switch back to Visual to see the preview
- Click "Update"
Classic Editor Tip: Don't paste in Visual mode - the editor may strip out the iframe code. Always use Text mode for embed codes.
Method 3: Elementor Page Builder
Difficulty: Easy
Best for: Sites using Elementor (30+ million installations)
Step-by-Step Instructions:
- Edit your Contact page with Elementor
- Drag an HTML widget to your desired location
- Paste your map embed code in the HTML Code field
- Adjust width in the widget settings (100% for full-width)
- Set minimum height (450px recommended)
- Click "Update" or "Publish"
Advanced Elementor Styling:
- Add padding around the map using the Advanced → Padding settings
- Create a two-column layout: Contact form on left, map on right
- Add a heading widget above with icon for visual appeal
- Use Elementor's motion effects for scroll animations (subtle only)
Method 4: Sidebar or Footer Widget
Difficulty: Easy
Best for: Site-wide location display in sidebar or footer
Step-by-Step Instructions:
- Go to Appearance → Widgets
- Find the widget area where you want the map (e.g., "Footer Column 1" or "Sidebar")
- Click + to add a block
- Search for and add a Custom HTML block
- Paste your map embed code
- Click "Update"
For Classic Widgets interface:
- Drag the Custom HTML widget to your chosen area
- Paste your embed code
- Add a title like "Visit Our Store"
- Save
Widget Tip: Footer maps work great for local businesses because they appear on every page, constantly reminding visitors where you're located.
Method 5: Divi Builder
Difficulty: Easy
Best for: Sites using the Divi theme or builder
Step-by-Step Instructions:
- Edit your Contact page with Divi Builder
- Click + Add New Section
- Choose a regular section or fullwidth (fullwidth looks great for maps)
- Add a Code module
- Paste your map embed code
- Adjust sizing in module settings
- Save and publish
Divi Layout Ideas:
- Create a two-column section: contact details left, map right
- Use Divi's "Blurb" module above the map for location highlights
- Add custom CSS for rounded corners or shadow effects
Creating the Perfect Contact Page
A great contact page is more than just a map. Here's what to include:
Essential Elements:
- Interactive Map: The star of the show
- Written Address: For copying or accessibility
- Phone Number: Clickable (use
<a href="tel:+1234567890">)
- Email Address: Clickable (use
mailto: links)
- Business Hours: Including holidays and special hours
- Contact Form: For online inquiries
Nice-to-Have Additions:
- Parking instructions
- Public transit directions
- Landmarks or building descriptions
- Photos of your storefront or building entrance
- Team member photos (builds trust)
- Social media links
Optimization Tips
Mobile Responsiveness
Most WordPress themes handle map responsiveness automatically, but if your map appears too large on mobile, add this CSS:
Go to Appearance → Customize → Additional CSS and paste:
iframe {
max-width: 100%;
height: auto;
}
@media (max-width: 768px) {
iframe {
height: 300px !important;
}
}
Page Speed
Google Maps iframes are lazy-loaded by default, meaning they won't slow down your page load time. They load only when visible on screen.
SEO Benefits
Adding a map to your contact page helps with:
- Local SEO: Google recognizes location signals
- NAP Consistency: Reinforces your Name, Address, Phone across the web
- "Near Me" Searches: Better chances of appearing in local searches
- Google My Business: Links your website to your GMB profile
76%
Of people who search for something nearby on their smartphone visit a business within 24 hours
Common WordPress Map Issues (And Fixes)
Issue: Map Not Showing
Solutions:
- Make sure you're using a Custom HTML block, not a regular paragraph block
- Check that you copied the entire
<iframe> code
- Switch to Text/Code mode before pasting (not Visual mode)
- Clear your cache (WP Super Cache, W3 Total Cache, etc.)
- Disable security plugins temporarily to test if they're blocking iframes
Issue: Map Appears Broken on Mobile
Solutions:
- Add the CSS code from the "Mobile Responsiveness" section above
- Check your theme's mobile settings
- Test on actual devices, not just browser resize
Issue: Wrong Location Displayed
Solutions:
- Verify the address you entered in the Maps Generator
- Include full address with ZIP code
- Regenerate the map with correct information
- Replace the old embed code with the new one
Issue: Map Overlaps Other Content
Solutions:
- Add margin/padding in your block settings
- Wrap the map in a container with proper spacing
- Check for theme CSS conflicts
Advanced: Contact Form + Map Side-by-Side
Create a professional two-column layout with a contact form on the left and map on the right:
For Gutenberg:
- Add a Columns block with 2 columns
- Left column: Add your contact form (Contact Form 7, WPForms, etc.)
- Right column: Add the Custom HTML block with your map
- Adjust column widths (50/50 or 40/60)
For Page Builders:
Use their built-in column/grid systems to create the same layout. Most page builders make this drag-and-drop simple.
Plugin-Free vs. Map Plugins: Which is Better?
| Aspect |
Custom Embed (Our Method) |
Map Plugins |
| Setup Speed |
5 minutes |
10-15 minutes |
| Performance |
Faster (no extra plugin) |
Slower (adds files) |
| Maintenance |
None required |
Regular updates needed |
| Cost |
Free forever |
Free or $20-60/year |
| Customization |
Basic (sufficient for most) |
Advanced (custom markers, colors) |
Our Recommendation: For 95% of WordPress sites, the custom embed method is perfect. Only use plugins if you need very specific advanced features like custom map markers, route planning, or multiple interactive markers.
Conclusion: Make Your Contact Page Work Harder
Adding a map to your WordPress contact page takes less than 10 minutes but can increase in-person visits by 40%+. It's one of the highest-ROI improvements you can make to your website.
Quick Recap:
- Gutenberg users: Use the Custom HTML block
- Classic Editor users: Paste in Text mode
- Page builder users: Use HTML/Code modules
- Widget areas: Great for site-wide display
- Mobile optimization: Test on real devices
Generate Your WordPress Map Code