If you already have the PHP Live! chat icon HTML code on your webpage
, you can reference the open chat function using the CSS class
<span class="phplive_link" style="text-decoration: underline; cursor: pointer;">Click for live chat</span>
The above code will produce the following link to open the chat window: Click for live chat
All spans, divs or links on the page containing the
phplive_link class will open the chat window.
Tips & Tricks
- Custom Variables - Pre-populate the name, email and question or send your custom variables to the chat request window.
- Transcript Action - When the chat session ends, process your custom PHP code to performan your custom actions.
- Custom Console - Inject custom code to the operator console to add your custom widgets, actions and more.