Embed Google Map – How to WordPress
Adding a Google Map to your WordPress site is relatively easy. You will often see them along with a Contact Form on a Contact Us page or in a footer of a website. This post will provide instructions on how to firstly add a simple Google Map with your location to your Website – if you have a Google Business listing, you will easily find your business. If not a Pin can be dropped to mark the location. The post will then detail how to create a Google map with multiple locations that can be embedded into your website
Google is great as it looks after Directions and allows the user to save places to their own maps account.
Simple Instructions to add your Business Location within Google Maps to your Website
- Open Google Maps
- Search for a place, in this example, it is Galway City but you can get much more specific. If your business is listed in Google My Business, your business will appear when searched.
To add a Pin to a Map you just have to Long-press on the screen to drop a pin. The address or location will pop up at the bottom of the screen.Tap on the location to open either share it, save it, or add a label to it.
- Click on the Share Button. A pop up map will appear.
- Select the Embed a Map Tab and copy the HTML – see the pink highlight box in image below. You can also change the size of the map in the drop down.
6. Click on the Text Tab (red circle in image) and paste in the html where you want the Map to appear. The dimensions of the map can be changed here also. Width can be changed to 100% for instance (see red rectangle) – important to do this to ensure map is responsive (appears properly on mobile phone screens)
Instructions to add multiple locations to Google Map embedded to your Website
I deliver training for New Frontiers in IT Sligo, LyIT, IT Tralee, GMIT, DKIT and WIT ArcLabs. Here are the instructions to embed a map with those locations featured.
- Open Google maps. Sign In.
- Within Menu Tab, click on Your Places
- Click on the MAPs TAB in the pop up that appears
- Select Create Map
- Add a Title to the Map by clicking on Untitled Map. You can also add a description
- You can also rename the ‘Untitled Layer’ to something appropriate
- In the Map Search Bar, search for your first location. When you find it select add to Map.
- Add more locations. In image below it shows how the 2nd location was added. ArcLabs, WIT was added first and then GMIT iHubs.
9. Add more locations and Save map. You can preview all the locations. We can now move to Embed this Google Map on a website. Click on PREVIEW icon (pink square in image below)
10. Click on the Share button first and change Permissions to Public (step 1 in image above)
11. Click on the Three Dots Menu to find the Embed Option. Copy the HTML Code provided (step 2 in image above)
Bonus – Plugin to Display a Pdf
WonderPlugin PDF Embed plugin available from the Plugin Directory allows you to display a multi page pdf on your WordPress site – just like the one below. The summary instructions are to: Upload the Pdf to the Media Library, copy the link created for the file, add the Wonderplugin shortcode and replace the link with one from your domain. It will look like this.
By using % for the width attribute, the PDF viewer is responsive. The Pdf document can be Downloaded and/or Printed by accessing the Menu on top right denoted with the double arrow icon >>
Here is the output:
As alway I hope you enjoyed this post. Comments and social shares welcome.
UPDATE January 2019 – With the new WordPress Block Editor, you will need to add a new Block in a Page or Post. Simply paste the HTML code provided by Google into the block. There is no change as of yet if you are embedding Google map into footer or sidebar using a widget.