A fav icon is the little image near a site title that appears in a browser. To get one is really simple. You have to create an 16×16 icon. After that you have to save it with .ico extension and upload it onto your website in your main directory (public_html).
The next step is to add this code in your header.php file between <head> and </head> tags:
And that’s all. Now you have a beautiful favicon.