Favicon

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

Use $wgFavicon to tell MediaWiki where the image is located.

Reach Out to the Truth19:53, 5 September 2010

I have a similar issue. My windows server is hosting several sites so the favicon for the wiki needs to be in a folder for that site... however when I use the php $wgFavicon settings in the localsettings.php file nothing happens.

208.97.59.6814:34, 2 November 2011

What is the content of $wgFavicon?

Reach Out to the Truth15:08, 2 November 2011

$wgFavicon = "$wgScriptPath/favicon.ico";

Allanhallett15:09, 2 November 2011
 

wiki.hotdocs.com

Allanhallett15:10, 2 November 2011

It shows up for me. And I see <link rel="shortcut icon" href="/favicon.ico" /> in the head as expected.

However, the favicon is actually a PNG and Internet Explorer only supports ICO favicons. If you're using Internet Explorer you won't see it.

Reach Out to the Truth15:17, 2 November 2011

what browser are you using? where does the favicon say that it is a png?

Allanhallett15:24, 2 November 2011

I just looked with firefox, safai, and chrome, and like you said they all work. But there is still the issue of why would IE think the

<link rel="shortcut icon" href="/favicon.ico" />

is a PNG?

Allanhallett15:32, 2 November 2011

Because it is a PNG. Firefox told me, and I trust it enough to not download the file and check myself. It's a PNG with an ICO extension, not an ICO file. Internet Explorer will only display ICO files as a favicon, regardless of extension.

Reach Out to the Truth16:20, 2 November 2011

I gotcha, thank you for the clerification.

Allanhallett18:23, 2 November 2011
 
 
 
 
 
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox