Change moodle activity icon
Submitted by nostro on Fri, 09/30/2016 - 09:55
Forums:
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!
icc
Fri, 09/30/2016 - 14:15
Permalink
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.
nostro
Fri, 09/30/2016 - 15:06
Permalink
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?
Thanks!
icc
Mon, 10/03/2016 - 10:54
Permalink
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.
nostro
Tue, 10/04/2016 - 08:58
Permalink
Hi,thanks for the hint, it
Hi,
thanks for the hint, it was the SVG - as soon as I replaced that and cleared the cache it worked.
Thanks!
icc
Tue, 10/04/2016 - 09:00
Permalink
I'm glad to hear that you got
I'm glad to hear that you got it working, and thanks for sharing the solution!
maude
Thu, 11/17/2016 - 10:46
Permalink
Thank you!
Invaluable sharing, thank you!!
nostro
Sun, 11/20/2016 - 14:22
Permalink
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 !
lewiscarr
Mon, 11/21/2016 - 11:20
Permalink
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:
/pix_plugins/mod/hvp/icon.svg
nostro
Fri, 11/25/2016 - 15:35
Permalink
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!
BjoernLefers
Mon, 02/20/2017 - 17:24
Permalink
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?
tim
Tue, 02/21/2017 - 08:21
Permalink
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.
BjoernLefers
Tue, 02/21/2017 - 18:27
Permalink
Good point! I just posted it
Good point! I just posted it here: https://h5p.org/node/51918
tim
Tue, 02/21/2017 - 17:28
Permalink
I think that link's broken
I think that link's broken Bjoern :/
BjoernLefers
Tue, 02/21/2017 - 18:29
Permalink
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!