-
AuthorPosts
-
May 11, 2016 at 10:52 pm #631010
On my contact us page I am trying to use the google maps media element. However after I fill out my address and fetch the coordinates, nothing appears on the actual page. It is fetching the coordinates and I have tried multiple addresses but it is not working.
May 12, 2016 at 9:59 pm #631625Hey chelseariepert,
It shows up fine on my end, attached a screenshot in private content field.
Please flush browser cache and refresh your page a few times – http://wiki.scratch.mit.edu/wiki/Hard_Refresh
Best regards,
YigitMay 17, 2016 at 10:29 pm #634059Hi Yigit,
i’m having the same problem. Even when you make the hard refresh, doesn’t work.May 18, 2016 at 6:57 am #634200Hi!
@katiascm please do create a new ticket.I have checked the contant page and after loading I can see it properly.
Please do hard refresh your site or also try a different browser to let us know if it is fixedRegards,
BasilisJune 30, 2016 at 10:05 am #655161Hi Team,
same problem here, no coordinates after klick *and* no map after manuelly coordinates.
Hope you can help?! Thank youRegards
MikeJune 30, 2016 at 10:09 am #655168Hello Support,
Same problem for me..
Regards,
TimJune 30, 2016 at 10:16 am #655172Also the when I put in the coordinates myself it doesn’t work.
June 30, 2016 at 11:39 am #655214Hi,
We will release an update regarding the issue. Our devs are working on it. Here is a temporary solution for the Google maps
1. Please get your API Key: https://developers.google.com/maps/documentation/javascript/get-api-key#key
2. Then add following code to functions.php file of your child theme in Appearance > Editorfunction gmaps_workaround(){ ?> <!--Google Maps JavaScript API --> <script src="https://maps.googleapis.com/maps/api/js?key=XXX" type="text/javascript"></script> <?php } add_action('wp_footer', 'gmaps_workaround');
please make sure to replace XXX in the code with your key
Best regards,
YigitJune 30, 2016 at 5:13 pm #655389I have added in the function into my child theme but the maps have the same issue, i have created the API key 2 times with no success. In the private area is a link to my site.
June 30, 2016 at 7:09 pm #655446Tried this and also didn’t work? :/ see here http://kimmavending.com/contact/ – also when switching to the child theme, we loose all customization? Thanks
June 30, 2016 at 7:45 pm #655452did work for me either…
June 30, 2016 at 8:30 pm #655462Hi,
I have exactly the same problem but its solution does not work for me.
Can you help me?***Yigit spent my access data in private!
Thanks.
June 30, 2016 at 10:00 pm #655477same pb and I don’t manage to go back at the latest version…
July 1, 2016 at 7:27 pm #655888Hi,
Yigit solution worked fo me.I’ve created an API Key and added code to functions.php in my child theme and now the problem is solved!
Please note: in my case it didn’t work immediatly!
I had to wait 15 min. for it to work, I guess it was due to google API key activation delay.July 1, 2016 at 7:32 pm #655890sweet – did you have to activate the child theme?
July 1, 2016 at 7:46 pm #655893Yes GBDesign,
I always use a child theme in case I have to customize something ;)- This reply was modified 8 years, 5 months ago by aledef.
July 1, 2016 at 7:47 pm #655894ok – strange because when we switch to the child theme all customization is lost? 1st time we have witnessed this using a theme?
July 1, 2016 at 7:54 pm #655896Yes it happens when you switch between main and child theme, and back.
Best practice is to activate a child theme before starting your customization.Anyway here is a workaround:
Activate main theme, export theme settings, reactivate child theme and import theme settings there.
Your child theme will look like the main theme.- This reply was modified 8 years, 5 months ago by aledef.
July 1, 2016 at 7:58 pm #655899Still not working for me….with my child theme.
July 1, 2016 at 8:10 pm #655903tried this and headers and menus still not as they sj=hould be> :/ they revert back to green colour default….we can wait till Kresi has a fix….using google map plugin for now
July 2, 2016 at 3:15 am #655964I too was struggling with getting Google maps to show up on my newly launched site but after searching around finally came across this post. I was able to add this code to the functions.php file and finally got everything to work.
What I had to do:
– Upload the latest Enfold version
– Create a Google Webmaster account
– Verify the domain by adding the meta data to the parent header.php and validating it. I would use the child header as hindsight
– Create the maps API key (assume this takes a few mins to kick in)
– Grab the API key and add the above script to the enfold child functions.php fileBoom! Maps finally showing up properly. Looking forward to the proper fix.
July 2, 2016 at 2:08 pm #656109I still cannot get this to work. I have tried this 5 times and the maps still do not show up.
July 2, 2016 at 2:26 pm #656113Can you give us an idea when the new REAL fix will be in place? It has been several days now and no update has been made.
July 3, 2016 at 5:25 am #656211I got it worked by modifying several files :D (The functions.php modification didn’t really help.)
The key of the solution is to attach the API Key to the URI string. The files below are in enfold theme folder.
config-templatebuilder/avia-template-builder/assets/js/avia-element-behavior.js
framework/php/class-framework-widgets.php
js/shortcodes.jsIn
avia-element-behavior.js
line 55 (or somewhere else)replace
maps.googleapis.com/maps/api/js?v=3.24&callback=av_builder_maps_loaded
by
maps.googleapis.com/maps/api/js?v=3.24&callback=av_builder_maps_loaded&key=xxx-xxx-xxx
In
class-framework-widgets.php
line 1369 (or somewhere else)
replacemaps.googleapis.com/maps/api/js?v=3.24
by
maps.googleapis.com/maps/api/js?v=3.24&key=xxx-xxx-xxx
In
shortcodes.js
line 458 (or somewhere else)
replacemaps.googleapis.com/maps/api/js?v=3.24&callback=aviaOnGoogleMapsLoaded
by
maps.googleapis.com/maps/api/js?v=3.24&callback=aviaOnGoogleMapsLoaded&key=xxx-xxx-xxx
Don’t blame if it doesn’t work on your site. :P
- This reply was modified 8 years, 5 months ago by chenxian352. Reason: beautify format
July 3, 2016 at 9:04 am #656229I first came across this problem on another site that I admin that uses MapPress. Same thing is happening there. Have to get an API key. I checked on another site I admin with an Enfold theme and the map that was already in place is still working so I thought “Yea!” I don’t have to go through this API Key business on every single Google Map I ever add. Wrong! Just encountered the same problem everyone else here is having in a new Enfold install. I’m just getting the iframe embed code from Google maps for now. I do not have the time to get an API key for every site I admin.
July 3, 2016 at 11:58 am #656245AFAIK you don’t have to create an API key for every site: One API key allows for 25000 map requests per day, which should be plenty for quite a few sites. You can specify which HTTP-referrers are to be associated with that key in your Google developer console.
So, just use the same API key for all your websites, add them into the referrer list for that key and it should work. Does for me…
July 4, 2016 at 6:15 am #656386 -
AuthorPosts
- The topic ‘Can't Get Google Maps on Contact Page to Show Up’ is closed to new replies.