Style CSS of H5P, but just in ONE course

Style CSS of H5P, but just in ONE course

napisao/la Richard van Iwaarden -
Broj odgovora: 2
Slika 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.
Odgovor na Richard van Iwaarden

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

napisao/la Richard van Iwaarden -
Slika 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.
Odgovor na Richard van Iwaarden

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

napisao/la John Provasnik -
Slika Particularly helpful Moodlers Slika 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!