{"id":49147,"date":"2015-06-04T03:27:50","date_gmt":"2015-06-04T07:27:50","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=49147"},"modified":"2017-08-04T05:05:26","modified_gmt":"2017-08-04T09:05:26","slug":"wordpress-how-to-change-google-map-marker","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-how-to-change-google-map-marker.html","title":{"rendered":"WordPress. How to change Google map marker"},"content":{"rendered":"<p>\r\n<p>Today you will learn how to change the Google map marker in WordPress templates. You should make the steps indicated below in order to change it.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=jmUIqS6OAWQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to change Google map marker<\/a><\/p>\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-3-(835-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>\r\n<ol>\r\n<li>\r\n<p>In order to do so, log into the <strong>admin panel<\/strong> by adding the \/wp-admin to your site URL. Then, go to the <strong>Appearance -> Editor<\/strong> and open the <strong>static-map.php<\/strong> file:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/WordPress.-How-to-change-the-map-marker.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/06\/WordPress.-How-to-change-the-map-marker-300x102.jpg\" alt=\"WordPress. How to change the map marker\" width=\"300\" height=\"102\" class=\"aligncenter size-medium wp-image-49148\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/WordPress.-How-to-change-the-map-marker-300x102.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/WordPress.-How-to-change-the-map-marker-150x51.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/WordPress.-How-to-change-the-map-marker-1024x347.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/WordPress.-How-to-change-the-map-marker.jpg 1889w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>There you should locate the following part of the code:<\/p>\r\n<pre class=\"brush:php\"> var image = '&lt;?php echo get_stylesheet_directory_uri(); ?&gt;\/images\/marker.png';<\/pre>\r\n<\/li>\r\n<li>\r\n<p>And change it to the following:<\/p>\r\n<pre class=\"brush:php\">var image ='http:\/\/your_website.com\/wp-content\/uploads\/2015\/05\/new_marker_image_name.png';<\/pre>\r\n<p>The link should be changed to yours:<\/p>\r\n<p>\t<a href=\"\/help\/wp-content\/uploads\/2015\/06\/WordPress.-How-to-change-the-map-marker2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/06\/WordPress.-How-to-change-the-map-marker2-300x112.jpg\" alt=\"WordPress. How to change the map marker2\" width=\"300\" height=\"112\" class=\"aligncenter size-medium wp-image-49149\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/WordPress.-How-to-change-the-map-marker2-300x112.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/WordPress.-How-to-change-the-map-marker2-150x56.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/WordPress.-How-to-change-the-map-marker2-1024x381.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/WordPress.-How-to-change-the-map-marker2.jpg 1469w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>After that, save the changes up and reload the web-site. You should see the image of yours.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=jmUIqS6OAWQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to change Google map marker<\/a><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Today you will learn how to change the Google map marker in WordPress templates.<\/p>\n","protected":false},"author":63,"featured_media":49152,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[929,1113,1985,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/49147"}],"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\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=49147"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/49147\/revisions"}],"predecessor-version":[{"id":82572,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/49147\/revisions\/82572"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/49152"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=49147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=49147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=49147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}