Google Maps via Shortcode not working

Hi,

I have issues with Google Maps not loading when added by shortcode, in Dev Console it says that I have loaded Maps multiple times. I have created API Key, tried, adding function.php code that I found here on forums. Didn’t work. I have tried Google provides tags, to the footer, that didn’t work too. And it still says in Dev Console, that I have no keys.

I have read here on forum, that in Cornerstone, there is some input to add api key, is there such thing for shortcodes?

Thanks.

Hello @ArnieX,

Thanks for asking. :slight_smile:

Please try adding the API key in maps element as shown in screenshot and let us know how it goes.

Thanks.

Hi,

that isn’t answer to my question. X Theme offer shortcode for adding Google Maps. This image you shared is for Cornerstone, which I’m not using. But maybe it will also affect the shortcode, which I doubt but may be true. Could you please clarify?

Thanks.

Hi There,

The Google Map shortcode API attribute is api_key. The full code should looks like this:

[x_google_map api_key="thisistheapi" lat="40.7056308" lng="-73.9780035" zoom="12" zoom_control="false" drag="false" height="" hue="false" no_container="false" ][/x_google_map]

Hope this helps

1 Like

@Lely thanks a lot, this works perfectly!!! You should update this information and shortcode at your shortcode database/showcase website, where is the old version, which isn’t working.

Hey There,

It’s good to know that it works out for you. We are already checking all our knowledge base articles that needs updating.

Thanks for the heads up.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.