How to change google api javascript?

  • Posted in : Empathy
  • yureak06
    Participant

    I’d like to change javascript about google maps api for using this <http://maps.googleapis.com/maps/api/js?v=3&sensor=false&region=KR&gt; in contact form.
    I did change to function.php from google.com to google.co.kr following someone tips.
    It doesn’t work :(
    where is the google api javascript file! I don’t figure out :(

    Please tell me how to change it

    thank u!

    serkan
    Moderator

    Hi, you need to pass api key parameter to the script url of the google map api;

    search for this piece of code in your index.html file;

    <script src="https://maps.googleapis.com/maps/api/js"></script>
    

    and replace it with this one

    <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY_HERE"></script>
    

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

    yureak06
    Participant

    Thank you for your reply!

    But, I still get a problem. I can’t find your code in index.html :(

    serkan
    Moderator

    Hi, You can check out this related URL, please.
    https://codex.wordpress.org/Editing_Files
    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register