In this tutorial we will show, how to add a favicon to your wordpress site, If you want to add the favicon image in your wordpress website that is really easy.
First use any photo editing tool like photoshop or gimp for creating the favicon image.
how to add a favicon to your wordpress site
To create the favicon image you should follow following rules
- By cropping or adding space around the image, make the image square.
- Resize the image to 16 x 16 pixels.
- Save the file as favicon.ico
Open your active wordpress theme and put favicon.ico image file in that folder or using ftp client you can put favicon.ico file in theme folder. After coping the favicon image file in theme folder. Open your header.php file from wordpress theme folder. and Put following code in that file.
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" type="image/x-icon" />
Dont forget to put above code under head tag. Now your are set and changed the favicon from your wordpress site. To see the new favicon image you should clear your browser cache.
It took me forever to replace a current favicon with a new one, but it was worth figuring it out! Thanks for showing us these options!
Thanks for the favicon images! Perfect for my website!