This author is away and may not respond to support questions until they return in 5 days.

182 comments found

Hi, I am running The Events Calendar, and the theme is conflicting with their Google Maps.

Do you have a code snippet that would allow me to dequeue your call to the Google Maps API so that is not being called twice?

Thanks Matt

LeafThemes
LeafThemes Author Team

Hi there, please try adding this code to functions.php

function wpdocs_dequeue_script() {
   wp_dequeue_script( 'nt-gmap-api' );
   wp_dequeue_script( 'nt-gmaps' );
}
add_action( 'wp_print_scripts', 'wpdocs_dequeue_script', 100 );

Cheers.

Yeah you’re right. Thx.

by
by
by
by
by
by