Enfold theme went through another update that stopped the Google Maps widget from working – again!
I know this happens with other themes and plugins too. If you’re getting the message that “Oops! Something went wrong.” instead of your map, you probably need to apply for your Google API key. The Enfold theme makes it obvious enough in the settings how to set this up, but the problem I was having is that I didn’t add the asterisk AFTER the domain name when I was setting up the credentials.
So, to sum up:
1) Visit Google to request an API key (or to adjust your current one): https://console.developers.google.com/
(If you’re using the Enfold theme, go to Enfold > Google Services – and click on Register for an API key)
When you click there, you’ll have to “Create a new project” unless you had previously set this up.
2) Create a new credential and use a name that will help you remember what this is for
3) Create a Key Restriction and use the HTTP referrers (web sites) option
4) When you add your URL, don’t use the http:// before and add an * after (see below)
Copy you API key and insert it in your theme/plugin settings and you should be all set. You may have to wait 5 minutes for the change to take affect and be sure to clear any caching plugins you are using.
*As another note, when it asks for API restrictions, be sure to enable Places, Geocoding, and Geolocation. Note – API keys with referrer restrictions cannot be used with these APIs. Then try to test the API again in Toolset > Settings > Maps tab. Also, make sure you have set up billing for this particular project.
Leave a Reply