Using a Text Link or Button
To open the Chat Widget
By John D'Ambra
Last Update há 3 meses
If you do not want to use the standard embed or inline chatbox, you can call a chat window from any text or button on your website.
There are some key steps to achieve this:
1. Add the widget code to your site just before the closing < / body > tag.
2. Add custom text or an image to your server with the click event.
3. Modify the widget behavior, so that it "Hides widget on load" (optional).
4. Display a custom image or text based on your status (optional)
Please follow these steps :
Step 1 - Copy the Widget code
1. Login to the dashboard
2. Go to the "Admin" section at the bottom of the left-hand sidebar.
3. Choose the site from the Properties menu (if you have more than 1 site).
4. Select the "Chat Widget" option in the menu.
5. Hover the cursor to the Widget Code section. Select "Copy to Clipboard" to copy the code.
5. Paste the widget code into your website HTML just before < / body >
6. Refresh your website to ensure you see the widget.
Step 2 - Create a button or text on your site
Create a button or text and add the following code before it:
For a text link use :
For an image use :
Step 3 - Hide widget on load, and pop out
1. Login to the dashboard.
2. Go to the Admin section at the bottom of the left-hand sidebar.
3. Select the Property from the dropdown menu (if you have more than 1 site).
4. Click the Chat Widget option.
5. Look for the "Widget Behaviour - Visibility Settings".
5. Switch on Hide Widget On Load - to hide the widget before it is clicked.
Step 4 - Display a custom image or text based on your status
If you followed Steps 1 through 3, you should now have an image or text on your site that pops out the chat when clicked.
An advanced option is to show different images based on the status of your widget. Eg: Offline, show an offline image, Online, show an online image.
1. Add this div code into your website's HTML in the position where you would like the button or text to display. You do not need to add anything inside the div, just copy and paste it exactly as is.
2. Add and modify this code with your custom images and text, and place it just before the < / body > tag.
Click Here for a working example of text-based status code.