Basic Changes To Theme Colors Using The "Config.php" File

Basic Changes To Theme Colors Using The "Config.php" File

by JB Romanowski -
Number of replies: 1
Hi everyone! How do I make basic changes to the colors of my theme using the lines listed below at the bottom of the "Config.php" file located in my theme folder? (Please be specific in describing what I need to do!) Thank you, in advance for your help! Smile.

$THEME->body = "#22FF22"; // Main page color
$THEME->cellheading = "#22FF22"; // Standard headings of big tables
$THEME->cellheading2 = "#22FF22"; // Highlight headings of tables
$THEME->cellcontent = "#22FF22"; // For areas with text
$THEME->cellcontent2 = "#22FF22"; // Alternate colour
$THEME->borders = "#22FF22"; // Table borders
$THEME->highlight = "#22FF22"; // Highlighted text (eg after a search)
$THEME->hidden = "#22FF22"; // To color things that are hidden
$THEME->autolink = "#22FF22"; // To color auto-generated links (eg glossary)
smile
Average of ratings: -
In reply to JB Romanowski

Re: Basic Changes To Theme Colors Using The "Config.php" File

by Urs Hunkler -
Picture of Core developers

Hi,

these lines belong to the Moodle 1.4.x theme config file. If you work with Moodle 1.5.x please use one of the themes designed for 1.5.x.

For an overview how to set up your own theme based on one of the standard themes please read the Moodle Theme Documentation.

Moodle uses CSS to style the pages. If you want to modify themes you need basic CSS skills.

I hope this helps
Urs