Change moodle activity icon
Submitted by nostro on Fri, 09/30/2016 - 09:55
Hi, I love the moodle plugin and the functionality it gives our LMS.
But as the default H5P activity icon is not very pretty compared to the content you can deliver with it, I'm wondering how I can change it.
I tried uploading a different icon.png file to the moodle/mod/hvp/pix folder, but it makes no difference.
Thanks in advance!
Fri, 09/30/2016 - 14:15
Moodle caches the image, so
Moodle caches the image, so you'll have to clear the caches after changing the image. This can be done through site administration -> development -> purge all caches.
Fri, 09/30/2016 - 15:06
Hi, I guess I'm missing
Hi, I guess I'm missing something, as it doesn't work for me.
I replaced the icon with the same 128x128 px icon.png file only with a different icon.
I purged the cache but the icon remained the same. Any ideas if I'm missing something?
Mon, 10/03/2016 - 10:54
Hm, I'm not quite sure what
Hm, I'm not quite sure what the issue could be then. Have you tried removing the SVG file in the same folder? I think that it's used in some contexts.
I would also try asking in the Moodle Forums as this isn't H5P specific.
Tue, 10/04/2016 - 08:58
Hi,thanks for the hint, it
thanks for the hint, it was the SVG - as soon as I replaced that and cleared the cache it worked.
Tue, 10/04/2016 - 09:00
I'm glad to hear that you got
I'm glad to hear that you got it working, and thanks for sharing the solution!
Thu, 11/17/2016 - 10:46
Invaluable sharing, thank you!!
Sun, 11/20/2016 - 14:22
Just updated the H5P moodle
Just updated the H5P moodle plugin and libraries and of course, my previously set icon is gone.
Probably should have used a 'Child-plugin'. I know how to do that in Wp, but have no idea how to handle this in moodle.
Any help is much appreciated !
Mon, 11/21/2016 - 11:20
Moodle icons in the theme
You can use custom icons in themes, so you don't need to replace the core H5P ones in the plugin.
In your Moodle theme, you need a pix folder in the theme root like below:
Fri, 11/25/2016 - 15:35
Thanks for the awesome advice
Thanks for the awesome advice!
It's really difficult to find moodle help that isn't oudated sometimes, thanks very much!
Mon, 02/20/2017 - 17:24
How about having different
How about having different icons for all the different h5p content types in Moodle? At the moment users only see that it's h5p, but not if it's a video, a quiz, etc. Would that be possible with Moodle?
Tue, 02/21/2017 - 08:21
Hi Bjoern, I don't think that
Hi Bjoern, I don't think that's possible right now. Perhaps you could make a post in the feature requests forum a developer from the community can pick it up.
Tue, 02/21/2017 - 18:27
Good point! I just posted it
Good point! I just posted it here: https://h5p.org/node/51918
Tue, 02/21/2017 - 17:28
I think that link's broken
I think that link's broken Bjoern :/
Tue, 02/21/2017 - 18:29
I think there was a space at
I think there was a space at the end of the link that might have screwed it up (I just copy and pasted the link without formatting it as a URL). I edited it and it should work now!