Tagged: x
-
AuthorPosts
-
July 15, 2016 at 4:11 pm #1089071
dthomParticipantHi, 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
July 16, 2016 at 12:56 am #1089578
Rue NelModeratorHello 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.3You 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.
July 16, 2016 at 3:43 am #1089676
dthomParticipantThis reply has been marked as private.July 16, 2016 at 3:44 am #1089678
dthomParticipantThis reply has been marked as private.July 16, 2016 at 4:49 pm #1090096
RadModeratorHi 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!
July 16, 2016 at 5:33 pm #1090121
dthomParticipantThanks 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.
July 17, 2016 at 1:59 am #1090399
RadModeratorHi 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!
August 26, 2016 at 8:23 am #1148170
lemieuxbedardParticipantI have the same issue, and no map on my page, so I think you have a leak somewhere 😉
August 26, 2016 at 10:33 am #1148345
JoaoModeratorHi There,
Please provide your URL and the specific page.
Thanks
Joao
October 17, 2016 at 1:45 pm #1219727
Brian TParticipantI’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.
October 17, 2016 at 9:27 pm #1220222
RadModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1089071 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
