This will be a brief but useful post. Let’s see how you can add favicon to WordPress Sites.
1- Create a 16×16 px .ico image (I did not say .png because it is not compatible with all the browsers) and name it favicon.ico
2- Upload this image to the root folder of your WordPress site. Root folder is the folder where your wp-config.php file resides
3- Open the header file of your child theme (generally named header.php)
4- Copy-paste the below lines just before </head> tag
<link rel="icon" href="<?php bloginfo('siteurl'); ?>/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<?php bloginfo('siteurl'); ?>/favicon.ico" type="image/x-icon" />
5- Save the header file and refresh your site
And this is all you need to add favicon to WordPress sites.
If you can not see the favicon try to reload your site using Ctrl + refresh (F5).
If you still can’t see it browse to “yoursiteaddress/favicon.ico” and force your browser to load the favicon, then reload your site.
Note: There are many online favicon generators.
Hope this helps.