Forum Replies Created
-
AuthorPosts
-
Hi Rikard:
So simple a solution — thanks very much!
Regards, Ned
Hi:
I am having a similar issue with my iPad landscape view. How do I fix this please?
Thanks, Ned
Hey Design Guy:
I was suffering with all of the ailments mentioned throughout this thread (Google Map Footer Widget, Google Map full width, Google maps on an Event plugin; nothing functioned). FYI, I have followed the model on the Google API Credentials, added an additional Google API plugin in WP, and completed the Google theme option on Enfold.
My solution was to add the following code to the functions.php file of my child theme (can’t say enough about the importance of using a child theme). You have to substitute YOUR API where indicated in the code:
function ava_googlemaps_apikey() {
$prefix = is_ssl() ? “https” : “http”;
wp_deregister_script(‘avia-google-maps-api’);
wp_register_script( ‘avia-google-maps-api’, $prefix.’://maps.google.com/maps/api/js?key=MyAPI Key’, array(‘jquery’), ‘3’, true);
wp_enqueue_script(‘avia-google-maps-api’);
}
add_action(‘init’, ‘ava_googlemaps_apikey’);After I did this, EVERYTHING worked fine. Hope this helps!
Rgds, Ned
Hey Hyland:
I was going to respond to your post about the Function I wrote about above. FYI, it’s not a CSS snippet, but should go in your functions.php file in a Child Theme.
Rgds, Ned
Hi again:
My error — I had the zoom set too high. Seems to be working now…
This was the key to get it to work:
function ava_googlemaps_apikey() {
$prefix = is_ssl() ? “https” : “http”;
wp_deregister_script(‘avia-google-maps-api’);
wp_register_script( ‘avia-google-maps-api’, $prefix.’://maps.google.com/maps/api/js?key=MyAPI Key’, array(‘jquery’), ‘3’, true);
wp_enqueue_script(‘avia-google-maps-api’);
}
add_action(‘init’, ‘ava_googlemaps_apikey’);Thanks, Ned
Hi:
An improvement to report!
I added the Google API workaround to the functions.php file in my child theme, and for the most part, all of my maps (previously not working) are appearing.
However, the full page map using the Google Map media element is still not right. I am now able to input an address, but it seemed to put me in the ocean in an unknown location, nowhere near the address in California, even though the latitude and longitude appear to be correct.
Recommendations?
Thanks, Ned
Hi:
I would like to add my 2 cents.
I added a full width Google Map Media Element to this page, but it is blank. http://sunshinephoenix.com/testing
How do you even enter an address? It has “street address”, “city” and “country”, and there are no longitude/latitude settings after Fetch Coordinates is clicked. Please advise. Please note that I was able to embed an IFrame Google Map link manually, which worked.
FYI, I have a Google Map API inserted in the Theme Options, an Event Calendar plugin, and a Google API plugin.
Thanks, Ned
Hi:
I have done everything according to your instructions.
I have loaded your widget into a sidebar and footer with the “oops” message as a result. The Avia Google Map media element is no better.This sure is frustrating — hope you can devise a more universal access!
Regards, Ned
Hi:
Just thought I would chime in and say that I set up a new API for my client, and have their URL set as *.sunshinephoenix.com/* to see if there was a positive result.
There has been no change… :-(
Regards, Ned
Hello:
As you can see from my home page footer widget, the map is not working. I have the Enfold 3.7.1 and added my Google Map API as instructedAdmin login is in the private content — thanks much for your help.
Regards, Ned
Hi Rikard:
I updated to 3.7.1 tonight, and I am still getting the “Oops something went wrong” message box, Any thoughts?
Rgds, Ned
-
AuthorPosts