Add Favicon in wordpress
Go to your WordPress Administration Panel.
Click on Appearance.
Click on Theme Editor.
Select the file called Header or header.php to edit the file.
Search for the line of code that begins with <link rel=”shortcut icon” and ends with /favicon.ico” />. Overwrite it, if it exists, or add the following code below the <head> HTML tag.
Put this code after: <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<link rel=”shortcut icon” href=”<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico” />
Before: <?php wp_head(); ?>