Help Desk Help Desk   Live Chat Live Chat   Phone +1 (917) 409-7605 M-F 9am-6pm EST
Home
Features
Screenshots
Free Trial
Pricing
Client Login
Help Desk
Search:
Help Desk » Tips and Tricks » Embed chat window width to span 100% of the webpage
Embed chat window width to span 100% of the webpage

Your PHP Live! system must be v.4.6.9.3 or greater to be able to process the 100% width method.  Previous version will produce a JavaScript error or the chat icon will most likely not load or the embed chat window format will be incorrect.

 

For those that may want to set the embed chat width to 100% of the webpage, here is what you will want to do:

 

  1. Inside the phplive/API/ directory, create a new file (if not exists) Util_Extra.php containing the following code:

    <?php
    $VARS_CHAT_WIDTH_WIDGET = "100%";
    $VARS_CHAT_PADDING_WIDGET = 0 ;
    ?>
     
  2. Save the file.  You now should have phplive/API/Util_Extra.php file containing the above code.  When the chat icon is clicked, the embed window should cover 100% of the webpage.

 

 

Related documentation: Resize the visitor chat request window size

Was this helpful?
could be more helpful? let us know