Tagged: cornerstone
-
AuthorPosts
-
July 6, 2016 at 2:46 pm #1075292
Hello,
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 #1075424Here 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 #1075760Hi 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 #1081907Hello 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 #1082233Hi 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 #1083351Thanks 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 #1083602Hi 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 #1084042This reply has been marked as private.July 13, 2016 at 3:28 am #1084471Hi 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 #1085098Thank you, it worked!
July 13, 2016 at 12:27 pm #1085277Great to hear it.
Let us know if we can help with anything else.
Joao
September 10, 2016 at 3:19 pm #1169497This reply has been marked as private.September 11, 2016 at 1:55 am #1169840Hi 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 #1173533This reply has been marked as private.September 13, 2016 at 1:44 pm #1173586Hi 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