Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #768409

    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.

    #768471

    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

    #768536

    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 :)

    #768627

    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

    #768632

    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.

    #769738

    Hello?

    #770264

    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

    #770330

    Hi Rikard,

    My mistake, I didn’t see the New API Key that Vinay shared. That did the trick. Thank you!

    #770446

    Hi,
    Glad Vinay was able to help, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Google Maps with API key not working’ is closed to new replies.