Home › Forums › ACF PRO › MAP field breaks JS › Reply To: MAP field breaks JS
Ok I was wrong – it IS a plugin that stops the MAP field and other JS from working.
In fact, ANY other Map plugin conflicts with ACF.
Either the map created from the plugin won’t render, or the plugin breaks ACF’s JS.
The Plugin (WP GPX Maps) loads a script in its plugin file correctly with wp_enqueue_script( 'googlemaps', '//maps.googleapis.com/maps/api/js?sensor=false', null, null);
which causes the conflict.
Any attempt to load this JS only on certain pages etc fails (function.php with add_action
etc).
I am not sure wether this is a problem with the plugin or with ACF, any help is appreciated.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.