Moodle Theme Rules, facts and points
A list of facts and points to take into consideration when
working on Moodle Themes.
Website by Ibiscuits
Moodle have a forum all about Themes
Moodle Themes Forum
Themes exist as a set of directories and files in the /moodle/theme directory
From Moodle version 2.2 onwards, themes in Moodle work differently.
(One consequence of this is that when upgrading Moodle from 2.0 to 2.9,
we have to first upgrade to 2.2 and then upgrade to 2.9)
It is important to use only lower case letters and underscores in all
directory and file names.
There are files which contain the theme in the filename and references
to the theme name inside the files.
For this reason, whenever a theme is copied, we must rename all the files
to show the name of the new theme and we must change any references to the old theme name
inside the files.
settings.php, renderers.php, lib.php contain quite a number
of references to the theme, which must all be changed.
Also change version.php
Themes can have a parent theme specified in the themes config.php
file. This means that all the CSS $THEME->sheets in the parent theme will be available
and do not need to be specifically listed in this new theme.
$THEME->sheets = array('style'); tells Moodle to use the CSS file style.css
You can create a
Theme Settings Page for your theme.