Skip to main content

MODx — Chat Code Installation

There are two ways to install the Online Chat widget code on the MODx CMS. Let’s review each method in detail.

Method 1. Installing the code via Chunk

1. Copy the widget code from the Online Chat settings.

MODx — Chat Code Installation. Screenshot 1

2. Log in to your website’s control panel. Select the “Elements” tab located on the left.

3. Click “New Chunk” and enter the following details:

— Name: Teletype

— Chunk code (HTML): The Online Chat widget code.

Save the new Chunk.

4. In the “Elements” tab, select the “Templates” section. Open the template you are using in edit mode. Insert the code [[$teletype]] before the </head> tag. The widget is now ready.

Note: Calling a Chunk may vary across different MODx versions;

*If you use multiple templates, insert the Chunk into all of them.

MODx — Chat Code Installation. Screenshot 2

Method 2. Installing the code directly in the Template

1. Copy the widget code from the Online Chat settings.

2. Log in to your website’s control panel. Select the “Elements” tab. Find your template and click on it.

3. Paste the Online Chat widget code before the </body> tag. Save the changes. The widget is now installed on your site.

Note: If you use multiple templates, insert the code into all of them.

MODx — Chat Code Installation. Screenshot 3
Была ли эта статья полезной?
0 из 5 звезд
5 Звезд 0%
4 Звезд 0%
3 Звезд 0%
2 Звезд 0%
1 Звезд 0%
Как мы можем улучшить эту статью?
Please submit the reason for your vote so that we can improve the article.
Оглавление