How to add Favicon to your WordPress site

Today i m going to show how to add Favicon to your WordPress site, well nowadays each blog its own favicon as a part of branding its website, well adding a favicon is not that difficult, but still some people find it, so today we will make it easy for adding favicon in WordPress blog.

Now lets start adding it, i Assume that you have already made your own favicon if you haven’t you can refer to Favicon Generator. add this code in your functions.php :

function wpden_favicon() { ?>
	<link rel="shortcut icon" href="link_to_favicon" >
<?php }
add_action('wp_head', 'wpden_favicon');

replace the link_to_favicon with your image link you want to use for favicon.

congratulation on how to add favicon to your WordPress site.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>