hi there,
my google maps isn’t working,
after loading the map for a second it becomes a grey square and says:
“Hoppla! Ein Fehler ist aufgetreten.
Google Maps wurde auf dieser Seite nicht richtig geladen. Technische Details dazu entnimmst du der JavaScript-Konsole.”
I have set everything right in my API, i even tried working ones and on this page they are noch working.
Could you please help me,
thanks,verena
Hey verena_1992,
I took a look and found that you had a function in your functions.php with a different API key that override your API key.
I removed the function and now your maps are working.
The code I removed was:
function ava_googlemaps_apikey() {
$prefix = is_ssl() ? "https" : "http";
wp_deregister_script('avia-google-maps-api');
wp_register_script( 'avia-google-maps-api', $prefix.'://maps.google.com/maps/api/js?key=KEY-IN-THE-Private-Content-Area', array('jquery'), '3', true);
wp_enqueue_script('avia-google-maps-api');
}
add_action('init', 'ava_googlemaps_apikey');
Best regards,
Mike