Your account expired support, please renew to get your support.

HomePage Forums Themes Support Triply – Tour Booking WordPress Theme Conflict with Google Map API

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24795
    maucast
    Support Expired

    Hi, your theme is in conflict with this plugin https://codecanyon.net/item/chauffeur-booking-system-for-wordpress/21072773

    Basically, when BA Book Everything plugin is active, I am getting this kind of error:
    You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.

    Can you advise how to disable google map API in your theme/plugin? I won’t be using it

    I have added this code to file functions.php of child theme, but it does not work

    function remove_google_api_scripts()
    {
        wp_dequeue_script( 'babe-google-api' );
       wp_deregister_script('babe-google-api');
    }
    add_action( 'wp_enqueue_scripts', 'remove_google_api_scripts', 11 );

    Thanks!

    #24841
    This reply has been marked as private.
    #24913
    maucast
    Support Expired

    Hi,

    That’s what I did, but the Google Maps JavaScript API warning remains

    #24919

    Hi you,

    I fixed this issue, please recheck.

    COde edit:

    add_action( 'admin_enqueue_scripts', 'remove_google_api_scripts', 9999);
    function remove_google_api_scripts(){
    	wp_dequeue_script( 'babe-google-api' );
       	wp_deregister_script('babe-google-api');
    }
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.