New Landing How can we help? Themeforest Theme Support Dante Help with multiple google API calls!

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #184445
    solidsn2004
    Member
    Post count: 208

    Hi,

    I’ve been having some issues with a website. I checked the console on chrome and it gives me the following warning:

    “You have included the Google Maps API multiple times on this page. This may cause unexpected errors. sl @main.js:60”

    I am using WP Maps plugin on this website and I’ve noticed this is what is causing the issue so I wrote to their support forum and this is their reply:

    “This is normally caused by a theme loading the Google Maps API over and above our call to the API.
    We have also noticed that UberMenu does the same (but there is a setting to undo this)

    Please make sure your theme does not call on the API, and/or that you do not have any other map plugins installed.”

    Could you please let me know if this is the case with Dante (calls on the API).
    Is there a way around this issue?

    Thanks in advance.

    #184461
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit functions.php file.

    Find this code:-
    wp_enqueue_script('sf-maps');
    
    Change with:-
    //wp_enqueue_script('sf-maps');

    Thanks
    Mohammad

    #184470
    solidsn2004
    Member
    Post count: 208

    Thanks a lot Mohammad!

    #184476
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Glad 🙂 it sorted.
    Thanks
    Mohammad

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register