Style CSS of H5P, but just in ONE course

Style CSS of H5P, but just in ONE course

Richard van Iwaarden發表於
Number of replies: 2
Particularly helpful Moodlers的相片
Is there a way to style something in H5P that keep restricted to that specific course?

A teacher wants to remove a button. H5P doesn't have the setting. With CSS you can hide the button, but I usually add CSS to the site wide theme. And in this case, I only want it in a specific course - not everywhere.

Is there a neat trick to do this?

A (kinda large) solution could be to copy the entire current theme in a version B, add that to the specific course and alter it there. But I kinda think that's overdoing it a bit.
評比平均分數: -
In reply to Richard van Iwaarden

Re: Style CSS of H5P, but just in ONE course

Richard van Iwaarden發表於
Particularly helpful Moodlers的相片
Found some guidance here: https://moodle.org/mod/forum/discuss.php?d=421374

I never realized that the course ID is inside the CSS tags. That should work.
評比平均分數:Useful (2)
In reply to Richard van Iwaarden

Re: Style CSS of H5P, but just in ONE course

John Provasnik發表於
Particularly helpful Moodlers的相片 Testers的相片
yes course IDs are great for this -- and Course Category IDs -- once I realized I could target a category of courses, the possibilities started rolling in!
評比平均分數:Useful (1)