Installation on Joomla
This guide will walk you through the process of adding the XAPP Chat Widget to your Joomla website. It's important to place the JavaScript snippet right before the closing </body>
tag in your Joomla template or module to ensure it appears on every page.
Prerequisites
- Administrative access to your Joomla site.
- Your unique
key
for the XAPP Chat Widget.
Installation Steps
Option 1: Adding to the Template
-
Access the Template Editor
- Log in to your Joomla administrator panel.
- Navigate to
Extensions
>Templates
>Templates
. - Click on your current template's name to edit it.
-
Edit the HTML
- In the template editor, locate the
index.php
file. - Scroll to the bottom of this file and find the closing
</body>
tag.
- In the template editor, locate the
-
Insert the JavaScript Snippets
- Insert the following snippets just before the closing
</body>
tag:
Chat Snippet
<script
id="xapp-js"
src="https://widget.xapp.ai/xapp-chat-widget.js?key=YOUR_CHAT_KEY"
></script>Note! Please replace "YOUR_CHAT_KEY" with your actual widget key.
Form / Scheduler Snippet
<script
id="xapp-form-js"
src="https://form.xapp.ai/xapp-form-widget.js?key=YOUR_FORM_KEY"
></script>Note! Please replace "YOUR_FORM_KEY" with your actual widget key.
Search Snippet
<script
id="xapp-search-js"
src="https://search.xapp.ai/xapp-search-bar.js?key=YOUR_SEARCH_KEY"
></script>Note! Please replace "YOUR_SEARCH_KEY" with your actual widget key.
importantFor the search bar, you will also need to setup a button on your website to trigger the search bar pop over, please see these instructions.
- Insert the following snippets just before the closing
-
Save Changes
- Click
Save
orSave & Close
to apply the changes.
- Click
Option 2: Using a Custom HTML Module
-
Create a New Module
- Navigate to
Extensions
>Modules
. - Click
New
and selectCustom HTML
.
- Navigate to
-
Add the JavaScript Snippet
- In the Custom HTML module, paste the JavaScript snippet:
<script
id="xapp-js"
src="https://widget.xapp.ai/xapp-chat-widget.js?key=YOUR_UNIQUE_KEY"
></script> - Replace
YOUR_UNIQUE_KEY
with your provided key.
- In the Custom HTML module, paste the JavaScript snippet:
-
Configure the Module
- Assign the module to a position that is active on all pages, typically
debug
or a similar position. - Set the status to
Published
. - Assign to
All Pages
underMenu Assignment
.
- Assign the module to a position that is active on all pages, typically
-
Save and Publish
- Click
Save
orSave & Close
to activate the module.
- Click
Verifying the Installation
- Visit your website to confirm the XAPP Chat Widget appears and functions correctly on all pages.
- If the widget does not appear, check if the unique key is correctly inserted and if the module/template changes are saved.
Troubleshooting
- Widget Not Displaying: Ensure the module is published, assigned to all pages, and the
key
is correct. - Check for Conflicts: Sometimes, other extensions or scripts can conflict with the widget. Check for JavaScript errors in the browser's console.
For further assistance or if you encounter any issues, contact XAPP support.