Hi, mozakdesign
I just released v2.5.0 which allows developers to disable the Google Map JS loaded by this plugin.
Update to 2.5.0 and add these lines of code to your theme’s functions.php
add_action('agm-after-shortcode', function () {
wp_dequeue_script('agm-google-map-api');
});
Checkout the docs:
https://github.com/ankurk91/wp-google-map/wiki/Before-and-After-shortcode-actions#examples
-
This reply was modified 9 years, 1 month ago by
ankurk91.
-
This reply was modified 9 years, 1 month ago by
ankurk91.
Did that .. but now the map flash displays and then shows an error
It seems you have not configured Google Map API Key in your theme.
See Screenshot –
https://ibb.co/it3qFa
You are using Stockholm theme, if you are using theme v3.3+ then the theme must have an option add Google Map Key somewhere.