{"id":73491,"date":"2016-07-19T08:21:08","date_gmt":"2016-07-19T12:21:08","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=73491"},"modified":"2017-08-24T05:21:31","modified_gmt":"2017-08-24T09:21:31","slug":"magento-2-x-how-to-change-contact-page-google-map-location","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/magento-2-x-how-to-change-contact-page-google-map-location.html","title":{"rendered":"Magento 2.x. How to change Contact page Google map location"},"content":{"rendered":"<p>In this tutorial we will show you how to change the Google map location on a Contacts page in our new <a target=\"_blank\" href=\"https:\/\/www.templatemonster.com\/templates.php?pr=216204-2016205-218599-50115\">Magento 2<\/a> templates. Feel free to review some more <a target=\"_blank\" href=\"https:\/\/www.templatemonster.com\/templates.php?pr=33863-50115\">Magento templates with Google Map<\/a> feature.<\/p>\r\n\r\n <div class=\"video-container\">\r\n\t<iframe src=\"https:\/\/www.youtube.com\/embed\/HlrNd5uj2Dc\"><\/iframe>\r\n<\/div>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_1-300x155.jpg\" alt=\"Magento_2x_How_to_change_Contact_page_Google_map_location_1\" width=\"300\" height=\"155\" class=\"alignnone size-medium wp-image-73492\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_1-300x155.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_1-150x77.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_1-1024x528.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_1.jpg 1242w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p>The Google map here is added with the iframe directly to the <strong>form.phtml<\/strong> file on the server.<\/p> \r\n<p>To change the location of the map, follow these steps:<\/p> \r\n<ol>\r\n    <li><p>Go to your server using the hosting control panel or the FTP connection, and navigate to <strong>app\/design\/frontend\/TemplateMonster\/themeXXX\/Magento_Contact\/templates<\/strong> folder. Locate the <strong>form.phtml<\/strong> file and open it with some code editor. You will see the iframe code in the beginning of the file.<\/p>\r\n\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_2-300x176.jpg\" alt=\"Magento_2x_How_to_change_Contact_page_Google_map_location_2\" width=\"300\" height=\"176\" class=\"alignnone size-medium wp-image-73493\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_2-300x176.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_2-150x88.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_2-1024x600.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_2.jpg 1281w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n\t<li><p>Navigate to the official <a target=\"_blank\" href=\"http:\/\/maps.google.com\/\">Google Maps<\/a> site, and type your address in the search field on top left. Then select the <strong>SHARE<\/strong> option from the menu below.<\/p>\r\n\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_3-300x139.jpg\" alt=\"Magento_2x_How_to_change_Contact_page_Google_map_location_3\" width=\"300\" height=\"139\" class=\"alignnone size-medium wp-image-73494\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_3-300x139.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_3-150x70.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_3-1024x475.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_3.jpg 1272w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\r\n\t<\/li>\r\n\t<li><p>Open the <strong>Embed Map<\/strong> tab, select the desired map size and copy the iframe code next to it.<\/p>\r\n\t\r\n\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_4-300x178.jpg\" alt=\"Magento_2x_How_to_change_Contact_page_Google_map_location_4\" width=\"300\" height=\"178\" class=\"alignnone size-medium wp-image-73495\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_4-300x178.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_4-150x89.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_4-1024x607.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/07\/Magento_2x_How_to_change_Contact_page_Google_map_location_4.jpg 1293w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\t\r\n\t<\/li>\r\n\t<li><p>Replace the existing code with the one you&#8217;ve just copied and save the file.<\/p>\r\n\t<p class=\"attention\">Note: you may need to clear the Magento cache.<\/p><\/li>\r\n\t<li><p>Check the your location on the site frontend.<\/p><\/li>\r\n<\/ol>\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/service-center\/\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-2-(835-x100).jpg\"\/>\r\n<\/a>\r\n<\/div>\r\n<p>We hope the tutorial was useful for you. Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=HlrNd5uj2Dc?width=1280&amp;height=720\" rel=\"prettyPhoto\">Magento 2.x. How to change Contact page Google map location<\/a>","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will show you how to change the Google map location on a Contacts page in our new <a target=\"_blank\" href=\"http:\/\/www.templatemonster.com\/templates.php?pr=50115-199912\">Magento 2<\/a> templates.<\/p>\n","protected":false},"author":78,"featured_media":73496,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[729],"tags":[801,2315,1113],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/73491"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/78"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=73491"}],"version-history":[{"count":2,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/73491\/revisions"}],"predecessor-version":[{"id":82912,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/73491\/revisions\/82912"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/73496"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=73491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=73491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=73491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}