New Landing How can we help? Atelier How can I disable Google map?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Atelier
  • #166755
    innsi
    Member
    Post count: 40

    Hi,

    My site is mainly for China user, because China is not support google,
    google map function make my site loads very slow in china.

    I would like to know how can I disable it.

    Thank you in advance.

    #166768
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit functions.php.

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

    Thanks
    Mohammad

    #166934
    innsi
    Member
    Post count: 40

    I’m using child theme, i edited the functions.php and put it in child theme directory.
    It crashes my site.

    Should I edit the functions.php in the atelier theme directory?

    #166942
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @innsi

    The map script should only load for pages which have the map included – if you never use the map asset then this shouldn’t be loaded. If it is please let us know and we will check it!

    – Ed

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 the following item
Login and Registration Log in · Register