
Language 🇺🇸 English
Teachable Installation
Add Comments to Teachable Lessons
FastComments can be added to Teachable course lessons with the Custom Code block in the Teachable lesson editor.
This tutorial requires a FastComments account. Sign in before following the steps so that the code snippet on this page contains your account's tenant ID. You can create an account here.
Teachable supports custom code in lessons on the Builder plan and higher. Schools on legacy plans need the Basic plan or higher.
The Custom Code block is added to each lesson individually.
Step 1: Turn Off Teachable Lesson Comments 
Teachable lessons have a built-in student comments setting. To show only FastComments on a lesson, turn off Teachable comments for that lesson:
- Go to the
Coursesmenu and select the course. - Open the
Curriculummenu of the course. - Click the lesson.
- Under
Lesson settings, turn off theStudent commentstoggle.
Teachable sets comments per lesson, so repeat these steps for each lesson that will use FastComments. The Student comments toggle appears only after the lesson has content.
Step 2: Add a Custom Code Block 
Open the lesson in the Teachable lesson editor and add a Custom Code block:
- Log in to your Teachable admin and select the course.
- Click the
Curriculumtab, then select the lesson. - In the
Lesson Editor, clickAdd Content. - Click the
Custom Codeblock. A popup opens for the code.
Use the Custom Code block, not the Code Example block. The Code Example block displays code as text and does not run it.
Step 3: Paste the FastComments Code 
Copy the following code into the Custom Code popup:

If the snippet contains tenantId: 'demo', you are not signed in to FastComments. Sign in and copy the snippet again, or replace demo with your tenant ID.
Setting the Lesson ID
Change my-course-lesson-1 to a value that is unique to the lesson, such as the course name followed by the lesson number. Each lesson that uses the same value shows the same comment thread.
The snippet sets urlId explicitly instead of deriving it from the page address. This keeps each lesson's comment thread separate whether Teachable renders the Custom Code block directly in the lesson page or inside a frame. The url and pageTitle values, used to link comments in notification emails and moderation tools back to the lesson, are read from the lesson page when the browser allows it.
Once the code is pasted, click Save.
Step 4: Preview and Publish 
Click Preview in the lesson editor to view the lesson with the comment widget, then click Publish to make the lesson available to students.
If the lesson is already published, changes to the Custom Code block are visible to students as soon as the block is saved.
Repeat Steps 1 to 3 for each lesson that should have comments, using a different lesson ID in each snippet.
Domain Errors 
The widget may show an authorization error like the following:
This error means the domain your Teachable school is served from has not been added to your FastComments account. If you connected a custom domain to the school, add that domain. Otherwise, add the Teachable domain shown in the browser address bar when viewing the lesson.
Customization 
The widget's styling and behavior can be changed from the FastComments widget customization page without editing the snippet, or by adding configuration options to the snippet.
See the Customization Documentation for the available options.