Demo classroom · Per-course CSS and JavaScript (free)
Demo classroom · Per-course CSS and JavaScript (free)
- 5 sections
- 10 activities
- Started 1/09/26
- Tracking of your progress
About this course
Demo classroom for the free Per-course CSS and JavaScript plugin (local_coursehead): lets administrators and managers define custom CSS and JavaScript for each course, with no HTML blocks, without touching the theme, and with permissions, caching and backup.
Choose this classroom if you need to give specific courses their own look (a client's, programme's or company's brand) or make design tweaks without modifying the theme for the whole site.
Free and open source: here you can see the effect applied to this very classroom and download the ZIP.
What the plugin does:
- Per-course CSS and JS: Stored in the database and served as external files with the correct content type.
- Separate permissions: Accessing the page, editing CSS and editing JavaScript are three different permissions, by default for managers only.
- Performance: Caching with ETag and revision control: the browser only downloads again when something changes.
- Site settings: Master switch, allow CSS or JS, which pages it is injected into, excluded paths and maximum length.
- Backup: The customisation travels with the course when it is copied or restored, filtered according to permissions.
- Validation and logging: Rejects HTML and PHP pasted by mistake and logs every change as a Moodle event.
Who it is for:
- Own-brand programmes: Colours and identity of a client or programme.
- Training for companies: Tailored courses with the client's look.
- Design tweaks: Specific adjustments without touching the theme for the whole site.
- Small behaviours: Controlled JavaScript when it is really needed.
What you can do in this demo classroom:
- Per-course CSS and JavaScript (ZIP)
- Check what you know about per-course CSS
- Tell us about your case: the look of your courses
- Ask the classroom's AI assistant ("AI Assistant" button) about features, configuration and price
Price: Free, direct download.
Open access: create your account and enrol in the classroom with one click.
What you will find
-
1. What it is and what it solves 1 activity
-
2. How it works 1 activity
-
3. How it is configured 1 activity
-
4. Try it yourself 4 activities
-
5. Next step 3 activities