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.

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.

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.

Оглавление