Tagged: x
-
AuthorPosts
-
August 30, 2016 at 9:33 am #1153417
newskywebsitesParticipantHi 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!
DawnAugust 30, 2016 at 9:36 am #1153424
newskywebsitesParticipantI 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…
August 30, 2016 at 10:15 am #1153506
JoaoModeratorHI There,
Please watch this video and confirm you have correctly created your API Key.
Let us know how it goes,
Thanks
Joao
August 30, 2016 at 10:44 am #1153548
newskywebsitesParticipantThank 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!
dawnAugust 30, 2016 at 10:55 am #1153568
JoaoModeratorHi 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
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1153417 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
