Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1153417
    newskywebsites
    Participant

    Hi there,

    I just took this site live (http://rasevic.com) and the map on the contact page isn’t working because of this new API thing. I followed your posts, created a Google Maps JavaScript API connected to *.rasevic.com/* and received an API key. Pasted into Cornerstone tool in your new Google API field and no luck.

    Then I found the functions.php code you recommended and I pasted that into place and still no luck. Other ideas? See here:

    function my_add_frontend_scripts() {
    wp_register_script( ‘cs-google-maps’, ‘https://maps.googleapis.com/maps/api/js?key= AIzTHISWASMYAPIMQe7I’);
    wp_enqueue_script( ‘cs-google-maps’ );
    }
    add_action(‘wp_enqueue_scripts’, ‘my_add_frontend_scripts’, 100);

    Thank you!
    Dawn

    #1153424
    newskywebsites
    Participant

    I just confirmed that there are no spaces after my API in the functions.php (even tho shown here) and no spaces in Google API Cornerstone field. Just in case you might want that checked…

    #1153506
    Joao
    Moderator

    HI There,

    Please watch this video and confirm you have correctly created your API Key.

    Let us know how it goes,

    Thanks

    Joao

    #1153548
    newskywebsites
    Participant

    Thank you. I did it correctly the first time, but did it again just now – this time with leaving the “HTTP referrer” blank since it is optional, and this time it worked.

    Question – do I need to do this for every client or can I use the same API on every map?

    Thanks!
    dawn

    #1153568
    Joao
    Moderator

    Hi Dawn,

    I believe that you should do this to every map. It is also quite new for us, so you also might consult google regarding this subject.

    You could try adding different URLS to the same API key but I am really not sure what impact it could have on your websits, so I would go the safe way, it is not such a hard process once you learn it, isnt it? 🙂

    Let us know if you have further questions,

    Joao

  • <script> jQuery(function($){ $("#no-reply-1153417 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>