How to change colouring of theme for individual courses?

How to change colouring of theme for individual courses?

by Alice Meehan -
Number of replies: 3

Hello,

Please can someone help, I am trying to keep the theme all round but we want to change the colour for each individual course whilst keeping the same theme.

Does anyone know if this can be done and if so to please provide step-by-step instructions as fairly new to moodle?

Many Thanks,

Alice

Average of ratings: -
In reply to Alice Meehan

Re: How to change colouring of theme for individual courses?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Moving to Themes forum...

In reply to Howard Miller

Re: How to change colouring of theme for individual courses?

by Alice Meehan -

I have been onto the themes forum and allowed the settings but how do you actually then amend to have individual different colours for different courses whilst keeping the same theme?

In reply to Alice Meehan

Re: How to change colouring of theme for individual courses?

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hi,

if you have already enabled course themes, then you should in the body classes of every course page find a class 'course-xxx' where xxx is the id number of the course.

You can use that to target any css you want specifically to that course

eg.

.course-123 a {color:red;} will make every link in course 123 red

.course-345 h2 {font-size:3em; color:blue;} will set the font size and colour for h2 headers in course 345


Hope that helps

Average of ratings: Useful (1)