Google Maps API Error - by mattnewark - on WordPress WooCommerce support

This topic has 6 replies, 2 voices, and was last updated 7 years, 1 month ago ago by Rose Tyler

  • Avatar: mattnewark
    mattnewark
    Participant
    February 13, 2017 at 13:26

    Hi,

    I have added my API details in the theme and I am still getting an error on the page, could you please have a look to see why this is not working.

    I have checked the console and it does say that there is an issue with the API key.

    Thanks

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 13, 2017 at 14:16

    Hello,

    https://developers.google.com/maps/documentation/javascript/tutorials/adding-a-google-map#step_3_get_an_api_key
    You need edit the file wp-content/themes/legenda/contacts.php, find the line 171
    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> , replace the code with this
    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=false"></script>
    , add your API key instead of “YOUR_API_KEY” text in the link.

    Regards,
    Rose Tyler.

    Avatar: mattnewark
    mattnewark
    Participant
    February 13, 2017 at 14:22

    I have made the changes and I am still having the same issue?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 13, 2017 at 15:45

    Hello,

    As I see, it works fine now http://prntscr.com/e87667. Clear browser cache, and check.
    Let us know the result.

    Regards,
    Rose Tyler.

    Avatar: mattnewark
    mattnewark
    Participant
    February 13, 2017 at 16:09

    Hi, All good thanks

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 13, 2017 at 16:12

    Hello,

    You’re welcome!
    Have a nice day!

    Regards,
    Rose Tyler.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.