Favicon

1
2
3
4
5
6
/** FAVICON ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
function favicon_link()
{
echo '<link rel="shortcut icon" href="' . get_stylesheet_directory_uri() . '/pix/favicon.ico" />' . "\n";
}
add_action('wp_head', 'favicon_link');

Interesting read on favicons: Understand the favicon by Jonathan T. Neal

1
<link href="/path/to/favicon.ico?v=1" rel="icon"/>