JavaScript Includes

The Javascript (JS) Includes feature allows site owners and site editors to include external JavaScript files on their Web Express site. All JavaScript files have been vetted for security as well as functionality. 

Note: you must enable the Advanced Layout bundle first to use this feature. 

1

Add JS Include

  1. Go to the Express toolbar and select Content.
  2. Select the Includes tab.
  3. Click the Add Includes link.

Add Include

2

Include Types

There are four includes you may add. Each has its own set of requirements.

  1. Select an Includes Type link.
  2. Enter the label of the js includes. The label appears on the Includes Overview page and helps you search for and filter results. 
  3. Complete the required fields for the include.
  4. Click Save.

3

Placing the JS Includes on a Page

Different types of JS Includes are placed on pages either through the Edit Layout feature on a page or through the Context feature. 

AdmitHub or LiveChat:

To add the AdmitHub or LiveChat chatbots to your site, see the Placing blocks with context tutorial. Using context will allow you to place the js includes block sitewide or on select content within your site. In the Reaction choose: Include JS and select either the AdmitHub or LiveChat include from the list.

Slate Form or StatusPage:

To add a Slate Form or StatusPage include on your site, see the Placing Blocks tutorial to learn how to place your JS Includes block. The JS includes block consists of a dropdown list of all the Slate Form and StatusPage includes created on the site. Select an include from the list to be displayed on the page.

JS Includes block

4

Managing JS Includes

When you are no longer using JS Includes services, it is best practice to remove the blocks from the site and remove the js include codes from the Includes Overview page.

  1. Go to the Express toolbar and select Content.
  2. Select the Includes tab.
  3. Scroll to the Operations section. The default operation is to Delete the js include code from the site.
  4. Select the box next to the include you would like to remove. 
  5. Click Submit.

Manage Includes