Remove Google Map s

I do not need or want google maps on my site, and I have noticed when doing speed tests on my homepage the google maps is causing slower load times.

As it is not needed, how to I stop or disable this element to speed up my homepage.

Thanks

Hello there,

Edit your pages and check if there’s a “Sydney FP: Contact” and disable the map in there.

Regards,
Kharis

Hello,

i am not using the Sydney FP: Contact shortcode anywhere, and yet, Sydney Pro seems to load a google maps js on every page. In order to meet GDPR requirements, i would prefer not to load any traces of google maps, no matter if it is actually being used or not, or else I would still need to mention it in my privacy policy.

I found this in the forums, concerning the same problem in West:

Is there a remove_action for Sydney?

Cheers

Rene

searched a little more and found this:

which, with a only minor changes, because i want to keep google fonts, does what i want, as a code snippet:

 function sydney_remove_google_maps() {
 	// Disable Google Map
 	wp_dequeue_script( 'sydney-gmaps-api');
 }
 add_action( 'wp_enqueue_scripts', 'sydney_remove_google_maps', 999 ); 

I love Sydney Pro!

Cheers

Rene

Hello there,

Glad to hear that you found the snippet works well for you. Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis