07/04/2016 at 2:50 am
#381399
Participant
Ok, I figged it out.
Get a google server key
make sure it is associated with your website in the google console.
ENABLE the javascript api as well as the geocode api, do this in the google console.
paste this into /wp-content/themes/yourtheme/header.php before the /head> tag
<script async defer src=”https://maps.googleapis.com/maps/api/js?key=YOURSERVERKEY&callback=initMap”
type=”text/javascript”></script>
REFRESH AND IT WORKS.
YOU CAN take a short cut by opening developer tools java console and click on the dev.google link at the error, scroll down and you can click on the link to get your snippet with your api, if logged in, just make sure itls the right one.
