Changing the lesson answer colour for wrong answeres

Changing the lesson answer colour for wrong answeres

ដោយ Murcotts Murcotts នៅ
ចំនួនតប៖ 9

I need assistance in changing the default colour  (black) for the incorrect answer in the feedback within the lesson module. I assume there is a way of doing it within the CSS code somewhere. I am also sure that somebody out there will know where that is and how to do it.

I just want to make the default colour for wrong answers red not black.

 

Regards Tim

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Murcotts Murcotts

Re: Changing the lesson answer colour for wrong answeres

ដោយ Andrew Golightly នៅ

If you won't have access to the server files, you could always write something like this in your feedback block..

<span style="color: red">Nope.. not quite</span>

OR... in my theme settings for custom CSS I added this

.incorrect {
color: red;
}

hope that helps,

Andrew

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Murcotts Murcotts

Re: Changing the lesson answer colour for wrong answeres

ដោយ Joseph Rézeau នៅ
រូបភាព Core developers រូបភាព Particularly helpful Moodlers រូបភាព Plugin developers រូបភាព Testers រូបភាព Translators

Which version of Moodle ? 1.9.x or 2.x?

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Joseph Rézeau

Re: Changing the lesson answer colour for wrong answeres

ដោយ Andrew Golightly នៅ

My version? 2.0.4

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Andrew Golightly

Re: Changing the lesson answer colour for wrong answeres

ដោយ Joseph Rézeau នៅ
រូបភាព Core developers រូបភាព Particularly helpful Moodlers រូបភាព Plugin developers រូបភាព Testers រូបភាព Translators

@Andrew : I was asking the Original Poster about his version.

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Joseph Rézeau

Re: Changing the lesson answer colour for wrong answeres

ដោយ Murcotts Murcotts នៅ

latest version of Moodle 2, is what we are using, upgrading to 2.1 very soon.

And we have access to the server files too.

 

Tim

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Murcotts Murcotts

Re: Changing the lesson answer colour for wrong answeres

ដោយ Joseph Rézeau នៅ
រូបភាព Core developers រូបភាព Particularly helpful Moodlers រូបភាព Plugin developers រូបភាព Testers រូបភាព Translators

@Tim,

Since you have access to the moodle core files on your server, here is a solution which will work regardless of your visual theme being used. (solution for Moodle 2)

File <yourmoodle>/mod/lesson/styles.css

add this css rule at the end of that CSS file:

.path-mod-lesson .response.incorrect {color:#FF0000};

#FF0000 stands for red

Hope that helps,

Joseph

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Joseph Rézeau

Re: Changing the lesson answer colour for wrong answeres

ដោយ Murcotts Murcotts នៅ

Joseph

 

I tried it and it didnt work. I dont know if this is right so Ive attached a screen shot of the css file

 

thanks Tim

ឯកសារភ្ជាប់ lesson css file.png
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Murcotts Murcotts

Re: Changing the lesson answer colour for wrong answeres

ដោយ Joseph Rézeau នៅ
រូបភាព Core developers រូបភាព Particularly helpful Moodlers រូបភាព Plugin developers រូបភាព Testers រូបភាព Translators

There was a small error in my CSS line, it should read:

.path-mod-lesson .response.incorrect {color:#FF0000;}

But it should still work. Did you empty ALL your caches after you added the line to your CSS file?

Site administration ► Development ► Purge all caches

Joseph

មធ្យមភាគនៃរង្វាយតម្លៃ:Useful (1)
ឆ្លើយតបទៅកាន់ Joseph Rézeau

Re: Changing the lesson answer colour for wrong answeres

ដោយ Murcotts Murcotts នៅ

Thanks.

yes that works now fine.

I have another issue that Im about to post too.

Regards Tim

មធ្យមភាគនៃរង្វាយតម្លៃ: -