Open Chat Through a Button
In this article, we'll walk you through the process of opening a chat through a button in Flatsome and provide examples for three popular live chat widgets: JivoChat, HelpScout, and Tawkto.
It's essential to watch the video, otherwise you'll not achieve the expected result. Below is the respective javascript function you need:
Widget Javascript Function
The class you must add to the button is called toggle-chat , but you can change it at any time. Remind to change it also in the javascript function document.getElementsByClassName("toggle-chat");
The function below must be added on Flatsome > Advanced > Global Scripts > Body Scripts - Bottom
For JivoChat
For Beacon (from HelpScout)
For Tawk.to
For Tidio
Conclusion
Opening your chat through a native Flatsome button enhances customer interaction and support. Make sure to follow these steps and use the provided JS sample codes.
Last updated