I am using elgg 2.01 and want to remove elgg icon.I tried a lot and finally found the location which is...vendor/elgg/elgg/engine/lib/views
What I did actually,
I changed favicon.ico to favicon.png from views(php) and uploaded my images to _graphics folder(i.e I changed the core files which I should not do).
So,Please tell me how can I override that file to have my own icon.
Thanks in advance!!!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
I think it should work like this: create the directories views/default/ into the site root directory (not in vendor/elgg/elgg/) and add favicon.ico there.
By default you can also add:
Different devices may use different size of the icons.
Take the full complete hook:
@RvR,Where to place this code I mean in which ditectory,should i create a new plugin or what_?
@Juho,I did it but that elgg icon is still there
The way I described works for me. It may be that the old icon is still stored in your browser's cache.
I cleared my history and cache,but no effect,its still there..should I change core files?
@Rvr I created a new plugin and placed that code in start.php and it is showing blank page.Please helppppp.......
@Shubham Jaiswal
Here's a full start.php of your plugin named theme:
Replace your icons to /mod/theme/i/ folder, or change it in the above code
@Juho: your suggestion doesn't work for me. Are you sure that it works on a default (zip based) installation of Elgg 2.X?
Favicon override plugin: https://elgg.org/plugins/2446383.
Yes, I tested now, it and it works. Starting from Elgg 2 favicons are stored under views/ so they can be overridden like any other view simply by dropping in the replacement. There is no need to add any code.
I believe the problem is that browsers cache the favicon very persistently. Even clearing the browser caches isn't always enough, but it may require additional tricks to make the new one visible.
- Previous
- 1
- 2
- Next
You must log in to post replies.