Categories

Featured templates

WordPress. How to change Google map marker

Sarah Vaynbaum June 4, 2015
Rating: 5.0/5. From 2 votes.
Please wait...

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.

WordPress. How to change Google map marker

  1. In order to do so, log into the admin panel by adding the /wp-admin to your site URL. Then, go to the Appearance -> Editor and open the static-map.php file:

    WordPress. How to change the map marker

  2. There you should locate the following part of the code:

     var image = '<?php echo get_stylesheet_directory_uri(); ?>/images/marker.png';
  3. And change it to the following:

    var image ='http://your_website.com/wp-content/uploads/2015/05/new_marker_image_name.png';

    The link should be changed to yours:

    WordPress. How to change the map marker2

  4. After that, save the changes up and reload the web-site. You should see the image of yours.

Feel free to check the detailed video tutorial below:

WordPress. How to change Google map marker

Amazing Wordpress Templates
This entry was posted in WordPress Tutorials and tagged google, map, marker, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket