Answer the question
In order to leave comments, you need to log in
How to change location icon on Yandex map(iconImageHref in js) in WordPress?
Hello.
The situation is as follows: there are two maps on the site with different sizes (one for desktop, one for mobile devices), everything is set via a js file, but when transferring to WP, you must specify the path of the location icon. I thought about making a plugin through ACF or just at least get_template_directory_uri (), but how to add php to js?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question