Reputation: 69
I am developing a site in PHP. The favicon is not displaying in Chrome and IE9.
I tried is:
'<link rel="icon" href="../images/Favicon.ico" />'
which works in Firefox.
Upvotes: 3
Views: 5842
Reputation: 858
For any favico(n), make sure in the source that it opens on a new tab / that the paths are right. Firefox usually "just displays it". If you don't see it for Chrome - when developing locally - right-click the refresh button and from the context menu, select "Empty cache and hard-reload".
Upvotes: 0
Reputation: 5
I had this similar issue and found that following the W3C recommendation : https://www.w3.org/2005/10/howto-favicon is the best way to do this.
<link rel="icon" type="image/png" href="favicon.png">
P.S For some reason, the combination of type="image/x-icon" and href="favicon.ico" did not work for me, which is why I changed my icon to a .png file.
This works perfectly on IE11/ Firefox and Chrome.
Upvotes: 0
Reputation: 1267
There are much things that can make it not to work.
And to be sure you could use this both:
<link rel='icon' href='favicon.ico' type='image/x-icon'>
<link rel='shortcut icon' href='favicon.ico' type='image/x-icon'>
Hope it helps.
Upvotes: 7