Tagged: x
-
AuthorPosts
-
June 10, 2016 at 10:24 am #1035999
Is there a way to disable the Google Maps API call? I don’t use the google maps shortcode function and it just adds additional requests.
Thanks!
June 10, 2016 at 6:06 pm #1036556Hi there,
Thanks for writing in.
Google maps resource will not load if you’re not using it. It could be from other sources, would you mind providing your site’s URL that has this issue?
Thanks!
June 13, 2016 at 3:11 pm #1040237ehsd.org
I’m not using google maps anywhere on the site.The site does use Slider revolution (homepage only) and Google Tag Manager/Google Analytics. Not sure if GA uses the maps API.
June 14, 2016 at 12:15 am #1040779Hi there,
Thanks for updating You can add the following code to your Child Theme‘s functions.php :
add_action( 'wp_print_scripts', 'de_script_maps', 99999 ); function de_script_maps() { wp_deregister_script( 'vendor-google-maps', 'https://maps.googleapis.com/maps/api/js' ); wp_dequeue_script( 'vendor-google-maps' ); }
Hope this helps.
Cheers!
June 15, 2016 at 3:39 pm #1043935I found the culprit. It was Ubermenu’s option to load the Google Maps API. it is found in the UberMenu settings under General Settings>Assets>Load Goggle Maps API.
There were others seeing Google Maps API key errors in the console and someone mentioned the option in UberMenu here:
https://www.facebook.com/groups/xthemeusers/permalink/610782859098125/?comment_id=610868992422845&reply_comment_id=611150665728011¬if_t=group_comment_mention¬if_id=1466013231613806I couldn’t see what was calling it and forgot UberMenu supports maps in the menu since I don’t use it. I’ll leave this here for others who might be searching the support threads.
Cheers!
June 15, 2016 at 3:42 pm #1043941Glad it worked out for you. Thank you for letting us know 🙂
June 30, 2016 at 8:16 am #1066647Just debugged my WP Google Maps issue, it was the UberMenu plugin! Thanks ehsd.
June 30, 2016 at 10:54 am #1066858Great to hear it.
Let us know if we can help you with antyhing else.
Joao
-
AuthorPosts