• Plugin Author Bruno

    (@xiaoxu125634)


    Sorry, can’t add disable google maps function to this plugin, because it’s used to disable google fonts only. But you can add some code into functions.php in theme directory to disable google maps:

    add_action(“wp_loaded”, ‘remove_google_maps_ob_start’);
    function remove_google_maps_ob_start(){
    ob_start(‘remove_google_maps_ob_end’);
    }
    function remove_google_maps_ob_end($html){
    $html = preg_replace(‘/<script[^<>]*\/\/maps.(googleapis|google|gstatic).com\/[^<>]*><\/script>/i’, ”, $html);
    return $html;
    }

Viewing 1 replies (of 1 total)
  • Dear Xiaoxu,

    Thanks for help ,as you know, for wordpress 4.0 , now when enter the backend ,it always loading maps.googleapis.com,maps.google.com and maps.gstatic.com, it caused speede is very low , Could you do a plugin to disable google maps? I know it can add some code to function.php, but this is not the best ways , i think the plugin is good .

    since we already solved the google fronts issues, but google maps issue has happened now , Could you help us to do another plugin ,

    Best Regards

Viewing 1 replies (of 1 total)
  • The topic ‘  ’ is closed to new replies.