Tagged: x
-
AuthorPosts
-
December 13, 2016 at 3:46 am #1291040
auldreekieParticipantI can’t get Google Maps to show up on my site.
I’ve added custom code to my functions.php file:
function my_add_frontend_scripts() { wp_register_script( 'vendor-google-maps', 'https://maps.googleapis.com/maps/api/js?key=xxx'); wp_enqueue_script( 'vendor-google-maps' ); } add_action('wp_enqueue_scripts', 'my_add_frontend_scripts', 100);I’ve disabled the Google Maps API in Ubermenu to avoid the known conflict. No success – Ubermenu still seems to be calling the Google Maps API in the code:
<script type='text/javascript' src='https://maps.googleapis.com/maps/api/js?v=3&ver=4.7'></script>and I’m getting a multiple API error. Disabling Ubermenu completely has no effect.
Adding the API key through Ubermenu and removing the custom code from functions.php has no effect – I get a missing API error.
Help!
December 13, 2016 at 4:07 am #1291063
DarshanaModeratorHi there,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
December 13, 2016 at 5:52 am #1291165
auldreekieParticipantThis reply has been marked as private.December 13, 2016 at 6:59 am #1291229
ChristianModeratorPlease give us the page where you’re having the issue. Your home page doesn’t have an error and no Google Maps code loaded in there.
Thanks.
December 13, 2016 at 8:13 am #1291308
auldreekieParticipantThis reply has been marked as private.December 13, 2016 at 8:16 am #1291309
auldreekieParticipantThis reply has been marked as private.December 13, 2016 at 9:52 am #1291451
DarshanaModeratorThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1291040 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
