ElkArte Community

Title: favicon
Post by: Jorin on August 13, 2014, 02:08:10 pm
I tried and tried but didn't find the spot to put the favicon.ico in for ElkArte.  O:-) Help is very appreciated!
Title: Re: favicon
Post by: Adrek on August 13, 2014, 02:24:09 pm
Just send it to forum folder (where you have SSI.php). There is already default favicon (favicon.ico).
Title: Re: favicon
Post by: Jorin on August 13, 2014, 02:34:43 pm
Okay, but there seem to be no changes. I cleaned the cache of ElkArte and my browser cache. But I can't see my favicon. Which favicon do you see at http://support.elkarte-hilfe.de ? Should be the one I attached here.
Title: Re: favicon
Post by: CrimeS on August 13, 2014, 02:51:26 pm
Favicons sometimes change after few days.
Title: Re: favicon
Post by: emanuele on August 13, 2014, 03:57:06 pm
The browser probably looks for the:
Code: [Select]
<link rel="shortcut icon" sizes="196x196" href="http://support.elkarte-hilfe.de/themes/Blue/images/mobile.png" />
This is a "mobile-oriented" favicon, change that to an equivalent sized image and it should pick the one you want. ;)
Title: Re: favicon
Post by: Jorin on August 14, 2014, 12:54:16 am
You were right. Thank you.
Title: Re: favicon
Post by: emanuele on August 14, 2014, 03:35:50 am
/me thinks this is to document somewhere or put a field in the theme settings or general or something...
Title: Re: favicon
Post by: Mstcool on August 15, 2014, 03:51:01 am
Its changed now. :p
Title: Re: favicon
Post by: b4pjoe on September 27, 2014, 12:49:19 pm
I've been trying to get my favicon to work instead of the default ElkArte favicon. I have completely removed the ElkArte favicon.ico from my sites root folder and I have placed my own favicon.ico in the forum root folder. I have deleted the forum cache, I have deleted the cache on Safari, Firefox, and Chrome. I have rebooted my computer. No matter what I do all 3 browsers still show the ElkArt favicon.ico file which is nowhere within my sites folder. Any ideas on how to make this change. If I directly link to my custom favicon.ico file it shows my custom favicon but going anywhere using my forum links the ElkArte default favicon.ico file is being used.

This is the image link to my custom favicon.ico file: (http://www.b4print.com/favicon.ico)
Title: Re: favicon
Post by: emanuele on September 27, 2014, 02:36:23 pm
See my reply #4 (http://www.elkarte.net/community/index.php?topic=1847.msg11566#msg11566). ;)
Same thing.
The favicon is defined in the template, line 174 of index.template.php:
	echo '
<link rel="shortcut icon" sizes="196x196" href="' . $settings['images_url'] . '/mobile.png" />
either change that or remove the line.
Title: Re: favicon
Post by: b4pjoe on September 27, 2014, 05:58:04 pm
Thank you. All is right with the world again. ;D
Title: Re: favicon
Post by: Allan on March 16, 2015, 04:37:17 pm
Quote from: emanuele – The browser probably looks for the:
Code: [Select]
<link rel="shortcut icon" sizes="196x196" href="http://support.elkarte-hilfe.de/themes/Blue/images/mobile.png" />
This is a "mobile-oriented" favicon, change that to an equivalent sized image and it should pick the one you want. ;)

Sorry to bring up an old post but running into this as well, my question is what size should it be set too?

Never mind found it 16 x 16.
Title: Re: favicon
Post by: emanuele on March 17, 2015, 04:05:06 am
In the line I posted, there is an attribute: sizes="196x196"
You can either use that size (that is in pixels) or change it to whatever you want.

Small suggestion, I think mobile devices like to have images of 196px X 196px. ;)
But 16 will do for "normal" (desktop) browsers.
Title: Re: favicon
Post by: Allan on March 21, 2015, 09:58:03 pm
Still trying to get this to work, right now I have
Code: [Select]
<link rel="shortcut icon" sizes="196x196" href="' . $settings['images_url'] . 'http://alilnook.com/favicon.ico" />

am I doing something wrong.
Title: Re: favicon
Post by: emanuele on March 22, 2015, 03:38:19 am
Code: [Select]
<link rel="shortcut icon" href="http://alilnook.com/favicon.ico" />
Title: Re: favicon
Post by: Allan on March 22, 2015, 06:47:25 am
That worked thank you, I thought it be something like that but wasn't too sure.
Title: Re: favicon
Post by: ahrasis on March 22, 2015, 11:44:02 am
Quote from: emanuele –
Code: [Select]
 <link rel="shortcut icon" sizes="196x196" href="' . $settings['images_url'] . '/mobile.png" />
I was thinking, is this really necessary for ElkArte? If it is not, why not just remove it in the future for easy favicon change.
Title: Re: favicon
Post by: emanuele on March 22, 2015, 01:32:51 pm
Well, the easiest way to change the favicon would be to replace the "mobile.png" file with an equivalent one in the images directory, so that mobile devices will be happy too.
Title: Re: favicon
Post by: ahrasis on March 24, 2015, 12:01:36 am
Well, that is one way of doing it though I prefer as simple as placing favicon.ico in EA root folder. ;)
Title: Re: favicon
Post by: emanuele on March 24, 2015, 04:24:31 am
That will (http://www.jonathantneal.com/blog/understand-the-favicon/) not play (http://realfavicongenerator.net/faq#.VREeyj3KlhE) very nicely (https://mathiasbynens.be/notes/touch-icons) with all the mobile stuff, but that's up to you. ;)