Theme directory

Theme directory

In the standard LMS distribution, all themes are placed in the theme/ directory.

More information about the content of a typical theme directory/folder can be found in Theme basics

Change themes default directory for site

The storage location of themes may be altered, using the variables $CFG->themewww and $CFG->themedir. Themes from placed in the directory specified by these variables will then be available for selection using the theme selector.

For example, should you wish to place themes in a subdirectory called ‘my_lms_themes’, your config.php might look like this:

$CFG->wwwroot   = 'http://my.lms.site.edu';
$CFG->dirroot   = '/var/www/my.lms.site.edu/public_html';
$CFG->themewww  = $CFG->wwwroot . '/my_lms_themes';
$CFG->themedir  = $CFG->dirroot . '/my_lms_themes';

Theme directory for Developers

Developers should follow the Theme directory guide

See also

Can’t find your answer?

Our support team is here to help you with any questions you may have.

Contact Support Team