the favicon image MUST be named "favicon.ico"...

This commit is contained in:
real_nowhereman 2010-09-01 18:09:37 +00:00
parent c173e4943c
commit 0c5cb9b390

View File

@ -9,10 +9,11 @@ Author URI: http://www.nowhereland.it/
*/
function plugin_favicon_head() {
// your file *must* be named favicon.ext,
// where ext is an image extension (such as gif, png, ico...)
// your file *must* be named favicon.ico
// and be a ICO file (not a renamed png, jpg, gif, etc...)
// or it won't work in IE
echo '<link rel="shortcut icon" href="' .
plugin_geturl('favicon') .'imgs/favicon.gif" />';
plugin_geturl('favicon') .'imgs/favicon.ico" />';
}
add_action('wp_head', 'plugin_favicon_head');