Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1075292

    ncuervo001
    Participant

    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.com

    Let me know what I can do to fix this.

    Thank you

    #1075424

    ncuervo001
    Participant

    Here is a screenshot of what I receive when I use the Google Maps block. First image: within Cornerstone, second image: while viewing the page.

    #1075760

    Darshana
    Moderator

    Hi 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.

    #1081907

    ncuervo001
    Participant

    Hello 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!

    #1082233

    Jade
    Moderator

    Hi 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.

    #1083351

    ncuervo001
    Participant

    Thanks 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.

    #1083602

    Joao
    Moderator

    Hi 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 Key

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1084042

    ncuervo001
    Participant
    This reply has been marked as private.
    #1084471

    Friech
    Moderator

    Hi 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!

    #1085098

    ncuervo001
    Participant

    Thank you, it worked!

    #1085277

    Joao
    Moderator

    Great to hear it.

    Let us know if we can help with anything else.

    Joao

    #1169497

    David H
    Participant
    This reply has been marked as private.
    #1169840

    Christopher
    Moderator

    Hi there,

    Please don’t add this function and instead add google API key to map element.

    See:

    null

    Hope it helps.

    #1173533

    David H
    Participant
    This reply has been marked as private.
    #1173586

    Joao
    Moderator

    Hi 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