Thursday, November 28, 2013

Add a Favicon to your Blog

Every blog deserves to have its own identity. You can add this identity by adding the favicon code in your header.php file, or you can make it easier for yourself by simply adding the following code in your functions.php file.


// add a favicon to your

function blog_favicon()

echo ‘<link rel=”Shortcut Icon” type=”image/x-icon” href=”‘.get_bloginfo(‘wpurl’).’http://cdn3.wpbeginner.com/favicon.ico” />’;


add_action(‘wp_head’, ‘blog_favicon’);



Add a Favicon to your Blog

No comments:

Post a Comment

Please mention your comments.......