Viewing 27 posts - 1 through 27 (of 27 total)
  • Author
    Posts
  • #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.

    #631625

    Hey 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,
    Yigit

    #634059

    Hi Yigit,
    i’m having the same problem. Even when you make the hard refresh, doesn’t work.

    #634200

    Hi!


    @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 fixed

    Regards,
    Basilis

    #655161

    Hi Team,

    same problem here, no coordinates after klick *and* no map after manuelly coordinates.
    Hope you can help?! Thank you

    Regards
    Mike

    #655168

    Hello Support,

    Same problem for me..

    Regards,
    Tim

    #655172

    Also the when I put in the coordinates myself it doesn’t work.

    #655214

    Hi,

    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 > Editor

    function 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,
    Yigit

    #655389

    I 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.

    #655446

    Tried this and also didn’t work? :/ see here http://kimmavending.com/contact/ – also when switching to the child theme, we loose all customization? Thanks

    #655452

    did work for me either…

    #655462

    Hi,
    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.

    #655477

    same pb and I don’t manage to go back at the latest version…

    #655888

    Hi,
    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.

    #655890

    sweet – did you have to activate the child theme?

    #655893

    Yes GBDesign,
    I always use a child theme in case I have to customize something ;)

    • This reply was modified 8 years, 4 months ago by aledef.
    #655894

    ok – strange because when we switch to the child theme all customization is lost? 1st time we have witnessed this using a theme?

    #655896

    Yes 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, 4 months ago by aledef.
    #655899

    Still not working for me….with my child theme.

    #655903

    tried 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

    #655964

    I 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 file

    Boom! Maps finally showing up properly. Looking forward to the proper fix.

    #656109

    I still cannot get this to work. I have tried this 5 times and the maps still do not show up.

    #656113

    Can 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.

    #656211

    I 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.js

    In 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)
    replace

    maps.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)
    replace

    maps.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, 4 months ago by chenxian352. Reason: beautify format
    #656229

    I 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.

    #656245

    AFAIK 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…

    #656386

    Hi,

    For everyone else who’s having this issue, please create a new thread with the url to the site including the WP and FTP login credentials. We’ll check it there.

    Best regards,
    Ismael

Viewing 27 posts - 1 through 27 (of 27 total)
  • The topic ‘Can't Get Google Maps on Contact Page to Show Up’ is closed to new replies.