Customized tags on the map, here is part of the code in the js file

iconImageHref: 'img/label_map.png' 

I screw on WordPress and if it was php, I would just write:

 iconImageHref: '<?php echo get_template_directory_uri()?>/img/label_map.png' 

Or something like that, and WordPress automatically set me on the right path. But this is a JS file, how to make sure that the path to the desired file is automatically and does not have to be set manually (you can make a mistake)

  • one
    /wp-content/themes/teck_name/img/label_map.png - Paul
  • Excellent thank you! Make it the answer, I will right - Igor

1 answer 1

/wp-content/themes/teck_name/img/label_map.png