Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1007968

    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.

    #1008215

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.