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.

#77245

Please Log in or Create an account to join the conversation.


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
#77283

Please Log in or Create an account to join the conversation.


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.

#77321

Please Log in or Create an account to join the conversation.


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
#77359

Please Log in or Create an account to join the conversation.


Time to create page: 0.194 seconds
Powered by Kunena Forum

WORLD-CLASS SUPPORT

We are here for you every step of the way. Turn to our support with any questions you might have about our products and services. Our experienced customer care team is available to help you as fast as we possibly can.

Contact us