Created
June 23, 2017 07:01
-
-
Save JarrydLong/f26a3458f4b5ba07d71b4f9bef85365a to your computer and use it in GitHub Desktop.
Open the chat window without having the hovercard open first
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Opens the chat window (both online/offline) instead of having to click on the hover card's 'Send Message' or 'Start Chat' button. | |
*/ | |
jQuery(document).ready(function(){ | |
jQuery("body").on("click", "#wp-live-chat-header", function(){ | |
setTimeout(function(){ | |
jQuery("#wplc_start_chat_btn").click(); | |
jQuery("#speeching_button").click(); | |
}, 300); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment