I'm looking for a way to change the WordPress favicon. Any hints how to do this?
feedback
|
migrated from webapps.stackexchange.com Feb 15 '11 at 0:33
This question came from our site for power users of web applications.
|
You should add it on your theme's header.php file with this code (W3C standard code):
| |||
|
feedback
|
|
For a little bit interoperability, consider using the Microsoft Icon format. Just place a file called That's important because many are requesting it directly. Sure you should add the meta to your site's output as well, it goes into the html head section:
Doing so will make it work in a large share of browsers and it will prevent 404s error messages in your server-logs as the meta href is not reflected by all user-agents. Favicon in WordPressA HTML head related WordPress hook is
Since version 3, WordPress has an empty favicon.ico build in. If you're interested in some details, there was some discussion going on in Should include default favicon (Ticket #3426) and Discard requests for favicon.ico (Ticket #11412) which resulted in that default 0-byte long virtual So it's basically a file the browser will fail at in a default setup w/o a user-added | |||
|
feedback
|
|
In case you support IE 6, a small warning: The favicon does not show in toolbar unless the url is added to 'Favorites' (bookmarks), and the favicons are stored in IE cache, so will get deleted when you delete the cache, or when gets periodically deleted. | |||
|
feedback
|
|
To make the list of answers complete, in the above answers were mentioned (see also http://en.wikipedia.org/wiki/Favicon) and your choice:
From the other side, if I look for a favion I:
p.s. you can ofcourse apply all these methods for your site to give the widest support possible ;) | |||||||||||
feedback
|
|
Just upload a "favicon.ico" file to your websites root and that's it! Actually, Fernando's answer works too:
And to add Favicons for Apple devices add this to your head:
| |||||
feedback
|
|
Simply Paste this code to functions.php and change href with your favicon path
| |||
|
feedback
|