WordPress.org

Support

Support » How-To and Troubleshooting » Adding Google Map to page template

Adding Google Map to page template

  • I’m in the process of moving my first static html site over to wordpress. So far everything has gone as expected with the exception of the google maps I had coded into two of my pages. I’m working on wamp and the maps are running fine there, but on the template, the map won’t load and I get the following in the console…

    The Google Maps API server rejected your request. This site or IP is not authorized to use this API key.

    I know it can’t be the key since it’s working just a few levels up. It seems like the most popular method of including maps to a page is to put them in a post and then call for the post where you want the map to appear, but since the map the map is likely to never change, I would rather code it directly into the template instead of adding it dynamically. Any suggestions would be helpful. Thanks in advance!

Viewing 1 replies (of 1 total)
  • Here is the code for the static map I’m trying to load. Nothing special. I also had the JavaScript version on top of this. I feel like if I can get this one running, then the other should be no problem.

    <img src="http://maps.googleapis.com/maps/api/staticmap?key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&sensor=false&size=300x300&markers=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" alt="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"></img>

Viewing 1 replies (of 1 total)
  • The topic ‘Adding Google Map to page template’ is closed to new replies.
Skip to toolbar