Moodle and H5P: How to change the H5P Logo only for the course content

Hi,

I am using Moodle and H5P. However, I would like to change the icon of H5P since it does not fit the design of our moodle course. I know how to change the icon by replacing the icon.svg. However, by doing so I do not only change the icon in my course but also the icon in the activity chooser window (please view the attached screenshot). Since the activity chooser window is used by different other users, the website admin of moodle does not allow to change the icon.

Thus, is there a way to change the H5P icon just for the moodle course but not for the activity chooser window?

Thank you so much for your help!

Kind regards :-)

BV52's picture

Hi eracansan,

I think a visit to these pages might get you started:

https://h5p.org/node/26713

https://h5p.org/node/51918

-BV52

Hi BV52,

thanks for pointing me to that thread. Unfortunately I have already read it beforehand and it does not solve my problem. I know how to change the icon in Moodle resp. for the plugin. However, by doing so it always changes both icons. The one in the course and the one in the activity chooser window. What I would like to achieve is to have a different icon for the course content, but stick to the black standard H5P icon in the activity chooser window.

Greatly appreciate your help.

Kind regards!

icc's picture

Hi,

There is another post on this somewhere but I couldn't find it.
There is a function you can add to mod/hvp/lib.php that will allow you to change the icon for the content in the course lists.