• Resolved pmbs

    (@pmbs)


    I have enabled the “auto pop up” function, and it works well on desktop. However I don’t want this to happend on mobile devices.

    Any way to do that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @pmbs,

    Thank you for getting in touch, we do appreciate your time.

    This would require some addition of custom JavaScript within the settings area. What we would be able to achieve, is wait for the chat box to open on mobile (auto-popup) and then simply close it again.

    However, a better alternative may be to disable the auto popup and simply add some code to open the chat only on desktop devices instead.

    Please let me know which of the above options you prefer and I will supply you with the needed JavaScript code.

    I look forward to hearing back from you.

    Thread Starter pmbs

    (@pmbs)

    However, a better alternative may be to disable the auto popup and simply add some code to open the chat only on desktop devices instead.

    Thanks for the quick reply. The solution you mention above seems like the best alternative yes ??

    Hi @pmbs,

    Thank you for your time on this one.

    Fantastic, please go ahead and add the following custom JavaScript to your website:

    jQuery(document).on('wplc_animation_done', function(){
    	if(jQuery(window).width() > 1000){
    		jQuery('#wp-live-chat-header').click();
    		jQuery('#speeching_button').click();
        }
    });

    This can be added to Live Chat -> Settings -> Custom Scripts -> Within the Custom JS textblock.

    Please remember to disable the auto-popup setting as well in order for this to work as intended.

    I hope this helps?

    Thread Starter pmbs

    (@pmbs)

    This works as intended. Thanks!

    Allthough, this will open the chat every time a user clicks into a new page. Any way to not open it again on load if the user have closed it out once?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable “auto pop up” on mobile devices’ is closed to new replies.