Hello, I’ve gone through your tutorial on how to activate the API key for a new website. Unfortunately, I continue to get the error notification and the Google Map does not allow “fetching” of coordinates.
Hey ikaika72,
1. Please get your API Key: https://developers.google.com/maps/documentation/javascript/get-api-key#key
2. Then add following code to functions.php file of your child theme in Appearance > Editor
function gmaps_workaround(){
?>
<!--Google Maps JavaScript API -->
<script src="https://maps.googleapis.com/maps/api/js?key=XXX"
type="text/javascript"></script>
<?php
}
add_action('wp_footer', 'gmaps_workaround');
please make sure to replace XXX in the code with your key
Best regards,
John Torvik
Ok, is it any different if I’m not using a child theme? where exactly should i paste that info in the function.php? please know i am not a programmer :)
Hi,
I checked your site and there is a message from the google maps.
In concole it say’s Google Maps API error: DeletedApiProjectMapError
Please try the new API key in Enfold > Google Services > API Key
Best regards,
Vinay
Hi Vinay, thanks for your help. Will you please explain this more…I’m not sure I’m understanding what I need to do. Are you saying I need to create a new API Key and then enter it in API key in Enfold > Google Services > API Key?
If not, will you please clarify. Thank you.
Hello?
Hi,
Sorry for the late reply. Did you try the API key that Vinay posted and did you have any luck with it? If not then please post admin login details in private so that we can have a closer look.
Best regards,
Rikard
Hi Rikard,
My mistake, I didn’t see the New API Key that Vinay shared. That did the trick. Thank you!