How To Add Google Maps In WordPress Without A Plugin Such as *. This will allow it to only make calls on your website. For your WordPress site, simply adding an HTTP referrer should be good enough. To do this, simply click on your API key’s name and it will allow you to add a restriction. Therefore you should restrict this, otherwise, people could use your API key on their WordPress site or projects and rack up your usage. If you’re simply embedding your Google Maps API key it will show in plain text in your source code. Step 5Ĭlick “Enable.” Enable Google Maps API Step 6Ĭlick on “APIs” and then under “Credentials”, you will see your API key. Don’t worry, you can always add multiple types and change these later on. If you’re using a third-party plugin or theme, they should have documentation on which type of Google Maps deployment they are using. If you are using a plugin like Google Maps Widget (as shown in the steps further below), then you would choose the Google Maps Static API. For example, if you are embedding a map on your WordPress site without a plugin (as shown in the steps further below), then you would pick the Google Maps Embed API. This depends on the type of map you’re using. You will be asked to pick one or more products. Even though they will require you to put a credit card on file, you should never be charged, unless you do go over the high usage limits. If you don’t have an account yet, create one, it’s free. Add the API key to your Google Maps embed code or plugin settings.īelow are steps on how to get your Google Maps API key.Add your billing info, even though you might not ever be billed.Sign up for a Google Cloud Platform Console account and configure it.What else has changed? Nothing, but you will now need to do the following if you want to use Google Maps in WordPress: So as you can see unless your generating thousands of requests, using Google Maps on your site shouldn’t cost you anything. Google also gives you a recurring $200 credit on your billing account each month to offset your usage costs. Or rather, you’re missing the API key. The good news is, for 99% of you, it should still be free. If you’ve already implemented Google Maps on your site and it’s no longer working, this might be the reason. Google Maps performance effect and tips to improve performanceĪs of June 11, 2018, an API key is now required for Google Maps.WordPress Google Maps plugins that give you more flexibility.How to add Google Maps in WordPress without a plugin. You can click below to jump straight to a specific section or just read through the whole thing. We’ll also dive into how to properly use the Google Maps API, which is now required.įinally, we’ll end with some performance considerations for using Google Maps on WordPress and share some tips on how to keep your WordPress site loading fast even if you do need to embed Google Maps. Then, we’ll recommend some plugins that can help you embed Google Maps, as well as some of the benefits of going that approach. In this post, we’ll start by showing you how to add Google Maps in WordPress without a plugin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |