Moodle 2: How to change background of News

Moodle 2: How to change background of News

by Cathy Macdonald -
Number of replies: 2

Hi there

I'm trying to change the background colour of the home page centre News block using the core.css in the standard theme.
It used to be the ".forumpost" class in 1.9+, but it seems not to work in Moodle 2. I've tried changing other likely-looking divs and classes in the css and also adding others suggested by the page source, e.g "posting fullpost".
But nothing is working.
What do I change, or add, in the core.ss?
Many thanks for any help smile.

Cathy

Average of ratings: -
In reply to Cathy Macdonald

Re: Moodle 2: How to change background of News

by Frank Ralf -
Hi Cathy,

The underlying HTML seems to have changed a bit in Moodle 2.0. Use Firebug to see what's going on under the hood. CSS FAQ and Themes FAQ are good starting points for learning more about CSS and theming.

Try this (see screenshot):

table.forumpost td.content {
background-color: lime;
}
Attachment Moodle 2.0 News section.png