Is It Possible to Inject Custom JavaScript at the Course Level in Canvas LMS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone,
I’m exploring ways to add custom JavaScript to a specific course in Canvas LMS. I’ve looked into the Theme Editor, but that approach applies JavaScript globally or at the sub-account level.
I’m trying to inject custom JavaScript that runs only for a particular course.
I’ve explored LTI apps, but this is limited to individual pages, and I need something that works across the entire course context.
Has anyone implemented this, or does Canvas have an undocumented feature or workaround for course-level JavaScript customizations?
Any suggestions, workarounds, or confirmation on this would be greatly appreciated!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @albinp - does your Uni provide you with your own web space? And do their policies permit you to use such JavaScript? I am asking as if I wanted to do something creative that Canvas does not provide for, then I would then either link to pages on my site or perhaps iframe the content into a Canvas page, etc.
Or perhaps ask for a special subaccount and create a single resource course that is open to anyone in the institution. This way you may be approved to use custom scripts in the theme and it would impact that course only. Then link to or embed pages of the open course to your course for the term. Jsut ideas. ;o)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@albinp Perfect. I think the easiest method would be for you to create a subaccount to which you can apply the custom js in the theme.