Style CSS of H5P, but just in ONE course

Style CSS of H5P, but just in ONE course

by Richard van Iwaarden -
Number of replies: 2
Picture of 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.
Average of ratings: -
In reply to Richard van Iwaarden

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

by Richard van Iwaarden -
Picture of 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.
Average of ratings: Useful (2)
In reply to Richard van Iwaarden

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

by John Provasnik -
Picture of Particularly helpful Moodlers Picture of 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!
Average of ratings: Useful (1)