{"id":7754,"date":"2018-09-04T10:50:53","date_gmt":"2018-09-04T14:50:53","guid":{"rendered":"https:\/\/extension.umaine.edu\/plugged-in\/?page_id=7754"},"modified":"2019-09-03T10:13:30","modified_gmt":"2019-09-03T14:13:30","slug":"embed-map","status":"publish","type":"page","link":"https:\/\/extension.umaine.edu\/plugged-in\/technology-marketing-communications\/web\/tips-for-web-managers\/embed-map\/","title":{"rendered":"How to embed a Google Map into a web page"},"content":{"rendered":"<p>Embedding a Google map into a web page that uses UMaine\u2019s new web theme is easy, but it requires a small adjustment to the embed code.<\/p>\n<h3><b>Get the embed code:<\/b><b><\/b><\/h3>\n<p>1. <strong>Go to <a href=\"https:\/\/www.google.com\/maps\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google maps<\/a><\/strong>. In the Search Google Maps text box, <strong>type in the address<\/strong> of the location you want to display on your web page.<\/p>\n<p>2. When the map appears, click on the <strong>Share<\/strong> icon.<\/p>\n<p>3. Select the <strong>Embed<\/strong> tab on the Share window.<\/p>\n<p>4. Click on <strong>Copy HTML<\/strong>.<\/p>\n<p><a href=\"http:\/\/extension.umaine.edu\/plugged-in\/wp-content\/uploads\/sites\/54\/2018\/09\/embed-map.jpg\" rel=\"attachment wp-att-7755\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7755 size-large\" src=\"https:\/\/extension.umaine.edu\/plugged-in\/wp-content\/uploads\/sites\/54\/2018\/09\/embed-map-1024x686.jpg\" alt=\"screenshot showing where to find Google Maps embed code\" width=\"1024\" height=\"686\" srcset=\"https:\/\/extension.umaine.edu\/plugged-in\/wp-content\/uploads\/sites\/54\/2018\/09\/embed-map-1024x686.jpg 1024w, https:\/\/extension.umaine.edu\/plugged-in\/wp-content\/uploads\/sites\/54\/2018\/09\/embed-map-300x201.jpg 300w, https:\/\/extension.umaine.edu\/plugged-in\/wp-content\/uploads\/sites\/54\/2018\/09\/embed-map-768x515.jpg 768w, https:\/\/extension.umaine.edu\/plugged-in\/wp-content\/uploads\/sites\/54\/2018\/09\/embed-map-105x70.jpg 105w, https:\/\/extension.umaine.edu\/plugged-in\/wp-content\/uploads\/sites\/54\/2018\/09\/embed-map-317x212.jpg 317w, https:\/\/extension.umaine.edu\/plugged-in\/wp-content\/uploads\/sites\/54\/2018\/09\/embed-map-423x283.jpg 423w, https:\/\/extension.umaine.edu\/plugged-in\/wp-content\/uploads\/sites\/54\/2018\/09\/embed-map-634x425.jpg 634w, https:\/\/extension.umaine.edu\/plugged-in\/wp-content\/uploads\/sites\/54\/2018\/09\/embed-map-846x567.jpg 846w, https:\/\/extension.umaine.edu\/plugged-in\/wp-content\/uploads\/sites\/54\/2018\/09\/embed-map-951x637.jpg 951w, https:\/\/extension.umaine.edu\/plugged-in\/wp-content\/uploads\/sites\/54\/2018\/09\/embed-map.jpg 1194w\" sizes=\"auto, (max-width: 320px) 85vw, (max-width: 768px) 67vw, (max-width: 1024px) 62vw,1024px\" \/><\/a><\/p>\n<h3><b>Embed the code in your web page:<\/b><\/h3>\n<p><strong>1. Open the web page<\/strong> (in WordPress) where you want to embed the map. <strong>Place your cursor<\/strong> in the editing window where you want the map to display.<\/p>\n<p><b>2. Paste in the code<\/b> from Google:<\/p>\n<p style=\"padding-left: 30px\"><strong><span style=\"color: #ff0000\">&lt;iframe<\/span><\/strong> src=&#8221;https:\/\/www.google.com\/maps\/embed?pb=!&#8230;&#8221; width=&#8221;600&#8243; height=&#8221;450&#8243; frameborder=&#8221;0&#8243; style=&#8221;border:0&#8243; allowfullscreen<strong><span style=\"color: #ff0000\">&gt;&lt;\/iframe&gt;<\/span><\/strong><\/p>\n<p><b>3. Change the code<\/b> as follows:<\/p>\n<p style=\"padding-left: 40px\">Replace the &#8220;<strong>&lt;<\/strong>&#8221; in &#8220;<strong>&lt;iframe<\/strong>&#8221; with &#8220;<strong><span style=\"color: #ff0000\">[um-<\/span><\/strong>&#8221; at the start of the code and replace &#8220;<strong>&gt;&lt;\/iframe&gt;<\/strong>&#8221; at the end of the code with just &#8220;<span style=\"color: #ff6600\"><strong>]<\/strong><\/span>&#8220;.<\/p>\n<p><strong>4. Your map will not display in the editing window<\/strong>; you\u2019ll see only the code. <b>To view the map<\/b>, save your changes and preview the page in your browser.<\/p>\n<p><strong>NOTE:<\/strong> Similar code changes need to be made when embedding a <strong>Google Calendar<\/strong> into your web page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Embedding a Google map into a web page that uses UMaine\u2019s new web theme is easy, but it requires a small adjustment to the embed code. Get the embed code: 1. Go to Google maps. In the Search Google Maps text box, type in the address of the location you want to display on your [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":7741,"menu_order":10,"comment_status":"closed","ping_status":"closed","template":"templates\/page-withsidebar.php","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-7754","page","type-page","status-publish","hentry"],"taxonomy_info":[],"featured_image_src_large":false,"author_info":{"display_name":"","author_link":"https:\/\/extension.umaine.edu\/plugged-in\/author\/"},"comment_info":0,"_links":{"self":[{"href":"https:\/\/extension.umaine.edu\/plugged-in\/wp-json\/wp\/v2\/pages\/7754","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/extension.umaine.edu\/plugged-in\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/extension.umaine.edu\/plugged-in\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/extension.umaine.edu\/plugged-in\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/extension.umaine.edu\/plugged-in\/wp-json\/wp\/v2\/comments?post=7754"}],"version-history":[{"count":5,"href":"https:\/\/extension.umaine.edu\/plugged-in\/wp-json\/wp\/v2\/pages\/7754\/revisions"}],"predecessor-version":[{"id":10274,"href":"https:\/\/extension.umaine.edu\/plugged-in\/wp-json\/wp\/v2\/pages\/7754\/revisions\/10274"}],"up":[{"embeddable":true,"href":"https:\/\/extension.umaine.edu\/plugged-in\/wp-json\/wp\/v2\/pages\/7741"}],"wp:attachment":[{"href":"https:\/\/extension.umaine.edu\/plugged-in\/wp-json\/wp\/v2\/media?parent=7754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}