Hi there
There is a conflict with the plugin metabox.io and it is loading google maps. I followed a few examples
https://kriesi.at/support/topic/how-can-i-disable-google-map-widgets-in-my-enfold-child-theme/
https://kriesi.at/support/topic/disable-google-maps-api-call-in-backend/
but it keeps loading the maps in the admin panel for a custom post (that does not support Avia builder).
How can I effectively disable the google maps api calls?
Thanks you.
Hey Sebastian,
Thank you for using Enfold.
You can use this code to deregister the theme’s map scripts.
add_action('init', 'ava_deregister_google_map_scripts', 30);
function ava_deregister_google_map_scripts() {
wp_deregister_script('avia-google-maps-api');
wp_deregister_script('avia_google_maps_front_script');
wp_deregister_script('avia_google_maps_api_script');
wp_deregister_script('avia_google_maps_widget_admin_script');
}
Please note that the theme’s map element will not work properly if you remove these scripts or use the filter above.
Best regards,
Ismael