Favicon is a small image file which is seen along with the title in web browsers. These are small square sized images of 16 x 16 dimensions. They can be of any format, .jpg or .gif or .png. But preferably .ico is the best format you should choose to add favicon in WordPress sites. It is because; no compatibility issue arises with any of the modern web browsers. Plus you don’t have to upload multiple favicon files of different dimensions if you choose .ico format.
Earlier we had covered how to add a favicon in Joomla websites. WordPress also allows websites and blogs to create and add a favicon. This tutorial will help you add favicon in WordPress sites efficiently. But before that, you need to create a favicon file with proper format and correct dimensions.
<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" />
Make sure you have named the image file as ‘favicon’, otherwise replace it with the file name in the above code. You can even add a favicon with a transparent background.
<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.png" />
This is the easiest way to add favicon in WordPress sites. In case you face any difficulty in uploading the favicon file, then you can take the help of our expert support staff. We also offer WordPress Installation and SEO services. Request a Quote for PSD to WordPress and HTML to WordPress template conversion.