N
N
Nik_10112020-07-07 10:12:07
Yandex maps
Nik_1011, 2020-07-07 10:12:07

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?

5f041fbdb4c45367997899.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question