Hi there,
I noticed that scripts from maps.googleapis.com are loaded on every page in the admin backend, even though Google Maps is turned off in the theme options. I searched the forum and tried quite a few of the suggestions, but, to no avail.
I finally was able to stop these requests by making a small change to a function in wp-content/themes/enfold/framework/php/class-gmaps.php:
public function handler_wp_register_scripts()
{
// this prevents the requests to maps.googleapis.com, if Google Maps is turned off in theme options
if( $this->is_loading_prohibited() )
{
return;
}
// leave rest of function unchanged
}
Although this works, I’d rather not change a core file. Plus, I’m new to Enfold and I am probably missing a better solution. Can someone please help me how to achieve the same, but do it properly? ;-)
Thanks,
Chris
