Good morning all!
I've been going nuts trying to figure out how to change the favicon in my 2.0 installation. Google has tons of results for previous versions, but I haven't been able to find anything about changing it in 2.0. Has anyone managed to do this so far? If so, how?
Thanks!
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.
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- Dev Anthony@devanthony
Dev Anthony - 0 likes
- Matt Beckett@Beck24
Matt Beckett - 1 like
- Dev Anthony@devanthony
Dev Anthony - 0 likes
You must log in to post replies.example:
https://github.com/AU-Landing-Project/au_theme/blob/master/start.php#L51
https://github.com/AU-Landing-Project/au_theme/blob/master/start.php#L221
I'm going to sound like a total noob here, but my current theme's start.php doesn't call for a favicon at all, and yet the Elgg standard one still appears. I tried simply replacing the graphics file with the new one, and that got me nowhere.
Is there another file that might call for the favicon?
Thanks!
Replacing the file should work (probably a browser caching issue, I know Chrome is particularly bad for holding onto favicons even after clearing caches). That's not the recommended way though as that's considered modifying core.
http://learn.elgg.org/en/2.0/guides/dont-modify-core.html
What I linked above is the correct way to change them - register a handler for the 'page', 'head' plugin hook, then change the url of where the new image file can be found. It is a bit more complicated than just replacing the file, but if you're going to be doing any kind of customizations using plugin hooks is something you should learn anyway.
http://learn.elgg.org/en/2.0/design/events.html#plugin-hooks
Now we're cooking with gas! I'm looking at my shiny new favicon in another tab as we speak!
Thanks very much for all your help!