1. Prepare the Class and Lesson
- Create a class with teacher-managed student accounts. Choose Teacher-managed username / password under Student Login when creating the class.
- In the class's Students panel, create a username and password for each student and share their credentials privately with them.
- Create a course and add a lesson, or use an existing course and lesson.
- Assign the course to the class.
- Make the lesson visible to students. Lesson availability dates still apply.
A class's login method is fixed when it is created. If your existing class uses Google/Microsoft sign-in, create a new class with teacher-managed accounts for embedding.
2. Copy the Embed Code
- Open the class and find the lesson under its assigned course.
- Select the Embed lesson code icon beside the Direct lesson link icon.
- In Embed Lesson, select Copy embed code.
The embed control is disabled for hidden lessons and for classes that do not use teacher-managed accounts.
3. Add the Lesson to Your Website
- Open the page where you want students to complete the lesson.
- Add your platform's HTML, custom code or embed code block. The name varies between platforms.
- Paste the complete code you copied from LingoLesson.
- Save and publish the page, then test the published page rather than relying only on the website editor's preview.
Your published page must use HTTPS, allow embedded content and permit the sign-in storage the lesson needs. Keep the recording permissions included in the copied code.
4. Test as a Student
- Open the published page in a private browser window or a separate browser.
- Enter a student username and password from this class in the embedded sign-in form.
- Work through the lesson. Test microphone and camera access if the lesson includes recording, and approve the browser's device permission prompt when asked.
- Save or upload recordings as instructed, then submit the lesson.
- In your teacher account, open the class's submissions view and check the answers, recordings and scores.
Refreshing the embed usually remembers the signed-in student while the session and browser storage remain available. Only saved work can be restored: finish saving or uploading a recording before refreshing.
Try a Quick Example with JSFiddle
JSFiddle is a simple way to try your own embed without first building a website.
- Open a new fiddle and paste your lesson's complete embed code into the HTML panel.
- Leave the JavaScript panel empty and select Run.
- Use the Result panel to sign in with a managed student account, complete the lesson and submit it.
- Check the submission in LingoLesson before sharing the example.
JSFiddle is an optional testing tool. Other website platforms can also work if they keep the required embed and recording permissions.
Recording Permissions and Platform Limits
Audio recording needs microphone access. Video recording needs both microphone and camera access. Listen and Repeat and spoken or mixed-mode Chatbot activities also need microphone access.
If the parent website blocks a permission required by the lesson, the embed shows an error such as “Parent frame blocks microphone and camera access. This lesson cannot be shown.” instead of the lesson content. Allowing a device in the browser cannot override a restriction imposed by the parent website.
Some platforms, such as Google Sites, block microphone and camera access in embeds, so lessons requiring recording cannot be shown there.
Different platforms and browsers may apply different restrictions. Test the published page with the question types and devices your students will use.
Troubleshooting
- Embed button is disabled: confirm that the class uses teacher-managed accounts and the lesson is visible.
- Student cannot sign in: use an account created in this class. If the password was reset, use the new password. See student account management.
- Sign-in storage is blocked: check whether the host or browser allows the storage needed by embedded content.
- Parent-frame recording error: the host must permit the required microphone/camera access and preserve the permissions in the code. If the platform does not allow that, use a different host for recording lessons.
- Lesson is unavailable: check visibility and availability dates for the lesson in this class.