Tagged: cornerstone
-
AuthorPosts
-
July 6, 2016 at 2:46 pm #1075292
ncuervo001ParticipantHello,
I’m trying to use the Google Maps or Map Embed block on Cornerstone on my theme and the map does not generate. I keep getting an error.
Here is a link to the website, if you scroll down, you’ll see the error and where the map is suppose to be:
http://www.1621bayshore.comLet me know what I can do to fix this.
Thank you
July 6, 2016 at 4:47 pm #1075424
ncuervo001ParticipantHere is a screenshot of what I receive when I use the Google Maps block. First image: within Cornerstone, second image: while viewing the page.
July 6, 2016 at 8:47 pm #1075760
DarshanaModeratorHi there,
Thanks for writing in! The Google Maps APIs require an API key for new domains as of June 22nd, 2016. See announcement here (http://googlegeodevelopers.blogspot.com.au/2016/06/building-for-scale-updates-to-google.html)
Please refer to the following instructions (https://community.theme.co/forums/topic/map-error/#post-1059000).
Thanks for understanding.
July 11, 2016 at 1:40 pm #1081907
ncuervo001ParticipantHello Team,
Sorry, but can you please provide a simple step guide for me / rest of us because the following instructions provided is a little complicated and I still don’t understand want to do since the instructions have other instructions and lead to many different replies.
I would really appreciate it and then you could refer to everyone to your simple step guide for further questions about this same topic.
Thank you X!
July 11, 2016 at 6:03 pm #1082233
JadeModeratorHi there,
Please check this link to get your API key.
Once you got the API key, you can login to your FTP and go to wp-content/themes/x-child then open the functions.php file then add this code:
function my_add_frontend_scripts() { wp_register_script( 'vendor-google-maps', 'https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY'); wp_enqueue_script( 'vendor-google-maps' ); } add_action('wp_enqueue_scripts', 'my_add_frontend_scripts', 100);Hope this helps.
July 12, 2016 at 11:32 am #1083351
ncuervo001ParticipantThanks but is there any other way to get around this issue because I’ve never used the FTP before and I’m not too comfortable to use it? haha
Thank you, I appreciate the help.
July 12, 2016 at 2:02 pm #1083602
JoaoModeratorHi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentials
– Google maps API KeyDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
July 12, 2016 at 8:17 pm #1084042
ncuervo001ParticipantThis reply has been marked as private.July 13, 2016 at 3:28 am #1084471
FriechModeratorHi There,
Please follow this post: https://community.theme.co/forums/topic/google-map-12/?replyto=1056861#post-1077583
On the latest release of X|Theme (4.6.0) and Cornerstone (1.3.0) Google map element provide you an API key field.
Hope it helps, Cheers!
July 13, 2016 at 11:01 am #1085098
ncuervo001ParticipantThank you, it worked!
July 13, 2016 at 12:27 pm #1085277
JoaoModeratorGreat to hear it.
Let us know if we can help with anything else.
Joao
September 10, 2016 at 3:19 pm #1169497
David HParticipantThis reply has been marked as private.September 11, 2016 at 1:55 am #1169840
ChristopherModeratorHi there,
Please don’t add this function and instead add google API key to map element.
See:

Hope it helps.
September 13, 2016 at 1:08 pm #1173533
David HParticipantThis reply has been marked as private.September 13, 2016 at 1:44 pm #1173586
JoaoModeratorHi David,
It is unecessary to add any code to functions php to use Cornerstone Google Map Element if that was the question,
You just need to setup your API Correctly, it will work also with markers.
Please see this 2 minutes video.
Hope it helps, If I did not clarify your issue, please let us know.
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1075292 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
