Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1089071
    dthom
    Participant

    Hi, I have the same Google maps API warning that have been documented and have followed the thread suggestions listed. My last attempt wwas to try and disable the api with the following code in my child theme. That did not do the trick either.

    I do have Ubermenu running and verified that the google api is disabled.

    // Google Maps API fix for Xtheme

    add_action( ‘wp_print_scripts’, ‘de_script_maps’, 99999 );

    function de_script_maps() {
    wp_deregister_script( ‘vendor-google-maps’, ‘https://maps.googleapis.com/maps/api/js’ );
    wp_dequeue_script( ‘vendor-google-maps’ );
    }

    Other ideas?

    Thanks

    #1089578
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! Thanks for updating the thread! Can you confirm that you are fully updated? (Theme and Plugins)

    Our latest versions are:
    X Theme: 4.6
    Cornerstone: 1.3

    You can find the latest version numbers here: (http://theme.co/changelog/) Then you can compare them to what’s installed on your site.

    If you find anything to be out of date, you can review our update guide.

    To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    Please let us know how it goes.

    #1089676
    dthom
    Participant
    This reply has been marked as private.
    #1089678
    dthom
    Participant
    This reply has been marked as private.
    #1090096
    Rad
    Moderator

    Hi there,

    It’s because your site loads google maps API URL 5 times from different plugins. And you’re supposed to add API Key on map elements.

    For example, you don’t have a map on your home page, then why it needs to have an API. It should only be needed where the map exists. And it’s nothing to do with the above code.

    Would be okay if I disabled all the plugins? You could do that too and check which is loading the multiple google map script.

    Thanks!

    #1090121
    dthom
    Participant

    Thanks for the reply. I have tried to identify the plugins calling the api an haven’t found the culprit. I can go through one by one and see if i can identify which one(s). I use the plugins that are active right now so I guss I will have to trace those authors down to disable the call to the api if i can.

    You mentioned that the above code “has nothing to do with this situation so i will remove it first. Question though. I read that xtheme does not load the google maps api unless a map is added. I that correct? Reason I am asking is back to what you pointed out that the api is loading on every page so I thought it was the xtheme loading the api.

    #1090399
    Rad
    Moderator

    Hi there,

    X theme has no google map functionality, it will not load any API. It’s the cornerstone that has the map element, and map API and library is only available on where the map element is added. Hence, cornerstone will not apply map API on page where there is no map.

    Thanks!

    #1148170
    lemieuxbedard
    Participant

    I have the same issue, and no map on my page, so I think you have a leak somewhere 😉

    #1148345
    Joao
    Moderator

    Hi There,

    Please provide your URL and the specific page.

    Thanks

    Joao

    #1219727
    Brian T
    Participant

    I’m running into the same issue. For some odd reason, they bundled the google maps API in both cornerstone and js composer, yet do not mention anywhere that if you want to use js composer the map will not work – because cornerstone is required for the theme to work – hence forcing it to load both api’s and bricking the map functionality all together.

    Is there anyway to remove the script call to https://maps.googleapis.com/maps/api/js?ver=4.6.1? I’m trying to use jQuery, with no luck.

    #1220222
    Rad
    Moderator

    Hi there,

    If you’ll remove that javascript then it’s the same as removing the map itself. Hence, the best approach doesn’t add google map element and use your own implementation of the map. We’re currently looking into this issue and please stay tuned.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1089071 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>