The given PHP example helps you to set your favicon in WordPress. Code Example:
<?php
function myfunction_blog_favicon() {
echo '<link rel="Shortcut Icon" type="image/x-icon" href="'.get_bloginfo('wpurl').'/favicon.ico" />';
}
add_action('wp_head', 'myfunction_blog_favicon');
?>
RSS Feed