disable google maps script for Google Maps WD
Dale Wallis created the topic: disable google maps script for Google Maps WD
Hi,
Our wordpress theme already adds the script tag for google maps with our API key.
How can I disable the second script that gets added by Google Maps WD?
thank you.
Please Log in or Create an account to join the conversation.
-
Topic Author
- Dale Wallis
- Offline
- Fresh Boarder
-
- Posts: 2
- Thank you received: 0
7 years 22 hours ago
Agapi G. replied the topic: disable google maps script for Google Maps WD
Hey Dale!
Thank you for posting your question!
Could you please submit a support ticket by sending an email through
this form
? Our developers will disable Google Maps script added by Google Maps WD plugin.
Please send temporary WordPress administrator access to your website, and also include the link to this forum thread in your message.
Thanks! Have a wonderful day!
Kind regards,
Agapi G.
Web-Dorado team
Please Log in or Create an account to join the conversation.
7 years 12 hours ago
Dale Wallis replied the topic: disable google maps script for Google Maps WD
Hi Agapi,
Thank you for your reply.
If you could please let me know which file\s to edit to prevent this from happening that would be great. I know it's pedantic but I would prefer not to give access to the site and anyone else having the same problem can just read this thread.
thank you.
Dale.
Please Log in or Create an account to join the conversation.
-
Topic Author
- Dale Wallis
- Offline
- Fresh Boarder
-
- Posts: 2
- Thank you received: 0
7 years 4 hours ago
Agapi G. replied the topic: disable google maps script for Google Maps WD
Hey Dale!
I spoke to our developers and they don't recommend you to remove the API script of Google Maps WD. That's because the plugin also imports libraries=places,geometry with the map script:
https://maps.googleapis.com/maps/api/js?libraries=places,geometry&sensor=false&v=3.exp
It is required for the plugin to function properly. But if you can add libraries=places,geometry to the script URL, which is added by your theme, then you can remove it from Google Maps WD.
Open /wd-google-maps/gmwd_class.php file and find gmwd_frontend_scripts function. The API script is included there:
wp_enqueue_script('gmwd_map-js', $map_api_url);
You can simply comment it out. Let me know if it works.
Thanks! Have a great day!
Kind regards,
Agapi G.
Web-Dorado team
Please Log in or Create an account to join the conversation.
6 years 11 months ago