Okay
  Public Ticket #981178
Google Map API (HTML)
Closed

Comments

  •  2
    Elliot started the conversation

    Hello,

    Thank you for the Newave theme it is very good.

    I'm having an issue with Google Maps and the API code from Google. I have received the API code from Google but I can't see where to insert it. I am using the HTML theme.

    The error message I receive is: ' Sorry! Something went wrong. This page didn't load Google Maps correctly. See the JavaScript console for technical details.'

    Is this something you can assist me with please?

    Thank you.

    Elliot.

  •  1,973
    Support replied

    Hello It looks like you need to create a Google Maps API key

    as described in this article:

    https://developers.google.com/maps/documentation/javascript/get-api-key

    Make sure you authorize the contact page url containing the map when you create the key.

    Then open /js/scripts.js look for where the map api is enqueued and pass it as parameter.

    Since this is support for wordpress themes, my knowledge of Newave html is limited, however you can also contact the author directly via his envato profile.

    Thanks


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  2
    Elliot replied

    Hi,

    Thanks for the reply.

    Still no luck - I appreciate your support even though it's the HTML template and not WordPress. I have my API key and have authorised it but I can't see where to enter the key. I'm looking in the scripts.js file but can't find anything. Do you know where it would be located at all?

  •  2
    Elliot replied

    I've resolved the issue now. For reference if anyone else has the issue:

    Replace this:

    script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"

    With this:

    script src="http://maps.google.com/maps/api/js?key=YOUR KEY" type="text/javascript"

    It's towards the bottom of the index.html page.

    Thanks for your support anyway.