• Resolved boombuzzer

    (@boombuzzer)


    Good Day,

    I have a real estate website and I am using my real estate plugin which uses an API and then Advanced Classifieds which also uses and API.

    The problem of course comes from the fact that two scripts are loaded and popping out an error. Is there a way that I can disable the API (not the map entirely from ACAD coz I need it) but just the instance when the page loads so that ACAD doesn’t load an API?

    Here is my error:
    You have included the Google Maps API multiple times on this page. This may cause unexpected errors.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author pluginsware

    (@pluginsware)

    Just add the following code in your theme’s functions.php file,

    function acadp_dequeue_scripts() {
    	wp_dequeue_script( ACADP_PLUGIN_NAME.'-google-map' );
    }
    add_action( 'wp_print_scripts', 'acadp_dequeue_scripts', 100 );

    Hope, this solved your issue!

    Thread Starter boombuzzer

    (@boombuzzer)

    Hi, thanks for your response.

    Although this makes sense, it just breaks the site completely where I cannot even go into the front-end or back-end.

    Am I putting it in the wrong place maybe?

    Plugin Author pluginsware

    (@pluginsware)

    Strange. Kindly submit a ticket in our website. So, we can get some access details of your website privately and do this on our own.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Google Maps API Error’ is closed to new replies.