
Language 🇺🇸 English
LearnWorlds Course Installation
LearnWorlds Site Page Installation
LearnWorlds Troubleshooting and Customization
Add Comments to LearnWorlds Courses and Pages
FastComments can be added to LearnWorlds in two places:
- Course content, using an Embed learning activity in the course outline. LearnWorlds lists the Embed learning activity as available on the Trial, Starter, Pro Trainer, Learning Center, and High Volume & Corporate plans.
- Site pages built with the LearnWorlds Site Builder, using an Embed section.
This tutorial requires a FastComments account. Sign in before copying the code snippets so that they contain your account's tenant ID. You can create an account here.
Step 1: Create an Embed Learning Activity 
Each comment area in a course is a separate Embed learning activity. Add one wherever learners should be able to comment:
- Open the
Course Manager, find the course, and go toCourse outline. - Click
Add activityand selectEmbed. - Enter a title for the activity.
- Click
Save and Edit.
If you clicked Save instead, hover over the new activity and click Settings to open the code field.
Step 2: Paste the FastComments Course Code 
Copy the following snippet. If the tenantId is demo, sign in to your FastComments account and reload this page so the snippet contains your tenant ID.

Before pasting, change the threadId value. The threadId value is passed to the widget as urlId, which identifies the comment thread. Use a different value for every Embed activity, for example intro-course-lesson-1. Two activities with the same value show the same comments. See URL ID for details.
Paste the snippet into the code field of the Embed learning activity and click Save.
The snippet reads the page address and title from the top-level browser window when it can, and from its own window otherwise. These values are stored with each comment and used for links in notifications and the moderation dashboard.
Step 3: Hide the Native Course Discussion Tab 
LearnWorlds courses can show a native Discussion tab in the course player. To show only FastComments in a course, turn the Discussion tab off for that course:
- Go to
Courses & Programsand thenCourses. - Select the course.
- Go to
Course settingsand openCourse Player. - Disable the
Show the course Discussion tabsetting.
The course player setting applies to one course. School-wide course discussion settings are under Settings, School settings, Community access, in the Course Discussion section.
This step is optional. FastComments does not depend on the native Discussion tab being shown or hidden.
Step 1: Add an Embed Section 
To add comments to a page built with the LearnWorlds Site Builder:
- Go to
Website, thenDesign, thenEdit Website. - Select the page to edit in the Page Manager.
- Hover over the page and click the
(+)icon to add a section. - Select the
Embedcategory and clickAdd. - Click the new element to open its settings in the sideform.
Step 2: Paste the FastComments Page Code 
Copy the following snippet. If the tenantId is demo, sign in to your FastComments account and reload this page so the snippet contains your tenant ID.

Then:
- Paste the snippet into the
Embeddable scriptbox in the sideform. - Click
Update. - Click
Saveto save the page.
LearnWorlds renders embeds only after the page is updated or when previewing, so the comment area may not appear in the editor until then.
The snippet uses the page path as the urlId, so the same snippet can be pasted on multiple pages and each page gets its own comment thread.
Domain Errors 
The widget may show an authorization error like the following:
This error means the domain is not yet allowed for your FastComments account. Add the domain your LearnWorlds school is served from, either its learnworlds.com subdomain or your custom domain, to your account.
Customization 
The widget's styling and behavior can be changed with custom CSS and configuration options.
See the Customization Documentation for the available options.