This is an update from a previous post because Google Cloud has changed their interface yet 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.
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) You will also need to make sure you have billing set up for this project. If there is no billing, the API will not work, even if you expect your monthly cost to be $0.
3) Create a new credential and use a name that will help you remember what this is for
4) Create a Key Restriction and use the websites option
Copy your 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.
It’s also worth noting that when I first tried to select the Maps API’s, the maps options weren’t available. After you’ve created an API key, it can be found under the Keys & Credentials tab on the left on the screen pictured above. I had to go the APIs & Services option on the left hand side of the screen pictured above and chose Maps to see all the options for maps API keys, and then enabled the ones I needed. When I went back to the Keys & Credentials tab, those APIs were then available in my API restrictions options at the bottom.
Something also worth noting is that Google may “charge” your credit card $10 to test that the card works. This charge should come off right away.
Leave a Reply