Your Time:
Our Time:
← Back to discussions

jquery.gmap.js

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 23 replies, 4 voices, and was last updated 7 years, 8 months ago by Fem.

  • 2018-10-30 at 10:47 pm
    Support Expired
    #24375
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24

    Hi,

    I have a big problem with :/wp-content/plugins/storeup-core/storeup-shortcodes/js/frontend/jquery.gmap.js

    The library takes 50 seconds to load !!!

    You know Why ?

    Thank You

    Sam

    2018-10-31 at 4:49 pm
    #24377
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    We need to add async and defer tag in script link like <script src="https://maps.googleapis.com/maps/api/js?callback=initMap" async defer></script> and in place of initMap, we need to write map initialized function name. async and defer will download the file during HTML parsing

    If you can provide us WP Logins to your website with URL then we can take a closer look at it. Make sure you set the post as a private reply so that only admin can see your wp-logins.
    Note: Before providing the wp-login to any support staff, kindly please make sure you take a backup of everything including WordPress content, theme options, widgets etc.

    2018-10-31 at 5:32 pm
    Support Expired
    #24379
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24
    This reply has been marked as private.
    2018-11-01 at 2:31 pm
    #24390
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Sorry unable to add that as I have no permissions to add the code.

    Here is the code you need to add that in your functions.php file

    function storeup_add_async_defer_attribute( $tag, $handle ) {
    	if ( 'gmapmin' !== $handle )
    	return $tag;
    	return str_replace( ' src', ' async defer src', $tag );
    }
    add_filter('script_loader_tag', 'storeup_add_async_defer_attribute', 10, 2);
    • This reply was modified 7 years, 10 months ago by Fem.
    2018-11-01 at 6:47 pm
    Support Expired
    #24394
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24

    Hi,

    I add the code but now, Some elements of my pages do not work anymore.
    ([iconbox] for exemple)

    You know why ?

    Thank you

    Sam

    2018-11-02 at 1:26 pm
    #24398
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Can you send us a screenshot of which icon boxes is not working?

    2018-11-02 at 5:10 pm
    Support Expired
    #24408
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24

    Hi

    i send you a scrren with your code and without your code

    With your code
    With your code

    Without your code
    Without your code

    Thank you

    SAm

    • This reply was modified 7 years, 10 months ago by atwio.
    2018-11-02 at 6:33 pm
    #24410
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Where did you add the code which I gave you?

    2018-11-03 at 12:15 am
    Support Expired
    #24411
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24

    In function.php file in storeup-child

    2018-11-05 at 10:55 am
    #24412
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    I don’t find it. Can you please share the screenshot, please?

    2018-11-05 at 3:46 pm
    Support Expired
    #24415
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24

    Oh sorry i delete the code, because is a production website

    I re-add the code now

    2018-11-05 at 5:26 pm
    Support Expired
    #24417
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24

    Please i wait for your answer my website is bug now

    Thank you

    Sam

    2018-11-06 at 1:05 pm
    #24418
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    If you come online in Skype then we can share the screen and do it as it will be an easy process.

    2018-11-08 at 4:05 pm
    Support Expired
    #24425
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24
    This reply has been marked as private.
    2018-11-10 at 2:14 am
    Support Expired
    #24426
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24

    Hi,

    I wait you see my website
    it’s been 2 days since my website bug,
    I’m waiting for your return to remove your code

    thank you

    Sam

    2018-11-12 at 2:01 pm
    Support Expired
    #24436
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24

    Hi,

    I add the code (4 days) in fonction.php in storeup-Child template but i still have no answer from you

    Thank you

    Sam

    2018-11-12 at 2:05 pm
    #24437
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    I just added you in Skype, I’ve tested the code after you added and it was showing for me.

    2018-11-12 at 5:18 pm
    Support Expired
    #24445
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24

    Sorry but the code does not work and [iconbox] does not work anymore

    2018-11-12 at 5:20 pm
    Support Expired
    #24446
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24

    i have this error in my console :

    Uncaught TypeError: jQuery(...).gMap is not a function
        at HTMLDocument.<anonymous> ((index):1030)
        at i (jquery.js?ver=1.12.4:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
        at Function.ready (jquery.js?ver=1.12.4:2)
        at HTMLDocument.K (jquery.js?ver=1.12.4:2)
    2018-11-12 at 5:33 pm
    Support Expired
    #24447
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24

    Please, I need your support, your theme works badly
    I can not wait another day
    Your support is open, but no one can answer?

    • This reply was modified 7 years, 10 months ago by atwio.
    2018-11-12 at 5:42 pm
    Support Expired
    #24449
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24
    This reply has been marked as private.
    2018-11-12 at 5:58 pm
    Support Expired
    #24450
    atwio
    Participant
    • Topics: 3
    • Replies: 16
    • Total posts: 19
    • Post count: 24

    “thank you” for your “answer” i delete your code (async)
    please find error of your template

    Sam

    • This reply was modified 7 years, 10 months ago by atwio.
    2018-11-13 at 11:33 am
    #24452
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Sorry for the delay in response <script src="https://maps.googleapis.com/maps/api/js?callback=initMap" async defer></script> here previously did you add callback map initialize function name which we used in the theme. Now Add script tag <script src="https://maps.googleapis.com/maps/api/js?key=myKey&callback=initialize" async defer></script> initialize is the function name we used in our theme to initialized google map and in place of mykey add your google map key. Hope this will work for you.

    2019-01-02 at 11:43 am
    #24557
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    We appreciate your patience and coordination. Is the issue you had resolved? or do you need any further assistance?

    We will set the issue to be resolved. If you are still facing the problem please re-open this topic instead of creating a new one.

    Aivah Team.

You must be logged in to reply to this topic.