Google Maps not Showing in Garage Theme Contact page

Latest Reply from Grace at 2016-08-22 01:34:53
I am using the Garage theme and the google map is not showing on the contact page. I have everything set correctly. Please help.

http://actionautographics.com/contact-us/
Hi!

I have visited and checked your website. There is the Google Maps API error (MissingKeyMapError) in the browser console. This error is caused by the latest google update. To fix it I can suggest you to follow the next steps:

1. Get a Google Maps API key. If you do not know how to do this you can read the next article:
https://developers.google.com/maps/documentation/javascript/get-api-key


2. Open the library.php file in the following directory:
\www\wp-content\themes\garage\inc


3. Find the next part of code:
wp_register_script( 'googlemaps', 'https://maps.google.com/maps/api/js', array( 'jquery' ), '3' );


4. And replace it with the next one:
wp_register_script( 'googlemaps', 'https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap', array( 'jquery' ), '3' );


You need to use your key instead of the YOUR_API_KEY words.
Grace,

Thank you for your reply, I followed the steps you outlined above and it seems that the map is still not showing. Any other ideas for a fix? Thank you in advance for your help!
Hi!

Unfortunately, in this case, the only thing we can recommend to you is contact the Google support.

Leave a reply

Add codeAdd image