WebChat integrate into WordPress
- Installed WebChat application on your anywhere server with at least version 4.0.16154.01.
The version can be checked by going to the WebChat folder root: /bin/sfbwebchatplus.dll, open the file details in the properties of the file and check the version number.
How to add webchat to a Wordpress website
Login on your FTP or other way to access your website files
Download you footer.php file
Edit and go to the end, right above this code:
<?php wp_footer(); ?>
Make sure jQuery (version 2 or up) is already loaded on the website, if not load it here like one of these methods
Download the jQuery file yourself and paste it in your js file. Then call it like this
Note Make sure to load in the right jquery version. In this example 2.1 is loaded.
<script src="<?php echo get_template_directory_uri(); ?>/js/ /jquery-2.1.0.js"></script>
Load it externally like this:
<script src="https://code.jquery.com/jquery-2.1.0.js" integrity="sha256-D6d1KSapXjq2tfZ6Ie9AYozkRHyB3fT2ys9mO2+4Wvc=" crossorigin="anonymous"></script>
Add WebChat elements on page of client.
Now load the webchat html. Load this like this:
<script id="anywhere365-sfbwebchatplus-client-index-external" src="//[WEBCHATROOTURL]/webchatwww/sfbwebchatplus/js/anywhere365_sfbwebchatplus_client_index_external.js"> </script>
Replace the bold lines with the root url of the installed WebChat.
Next load the Anywhere365 Webchat Scripts like this:
<!-- Start Anywhere365 Webchat Scripts -->
/*default init, uses default settings and determines default url's */
presenceCustomFileUrl : "//[WEBCHATROOTURL]/webchatwww/custom_assets/js/anywhere365_sfbwebchatplus_presence_custom.js"
<!-- End Anywhere365 Webchat Scripts -->
Replace the bold lines with your own locations and files (normally this is also located in the installed WebChat location). The webchat should should work
Save the file and refresh your website. If the installation part was done correctly, the webchat should now be visible and working.
For more general information on the WebChat Integration, Learn More
Did you find this page helpful?
Sorry about that
Why wasn't this helpful? (check all that apply)
Thank you for your feedback.
Want to tell us more?
Email your feedback to our documentation team.
Thanks for taking the time to give us some feedback.