the favicon image MUST be named "favicon.ext"! (or IE won't show it...)

This commit is contained in:
real_nowhereman 2010-09-01 06:35:44 +00:00
parent 3c94284f70
commit c173e4943c
2 changed files with 5 additions and 2 deletions

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -9,9 +9,12 @@ Author URI: http://www.nowhereland.it/
*/ */
function plugin_favicon_head() { function plugin_favicon_head() {
echo '<link rel="shortcut icon" href="' . plugin_geturl('favicon') .'imgs/fplogo.gif" />'; // your file *must* be named favicon.ext,
// where ext is an image extension (such as gif, png, ico...)
echo '<link rel="shortcut icon" href="' .
plugin_geturl('favicon') .'imgs/favicon.gif" />';
} }
add_action('wp_head', 'plugin_favicon_head'); add_action('wp_head', 'plugin_favicon_head');
?> ?>