Step 1: Make sure that your site icon file is called favicon.ico.
Step 2: Log into cPanel > Files section > File Manager menu.
Step 3: Navigate to the WordPress installation directory and upload the favicon.ico file.
Step 4: After that, your website favicon should be updated automatically.
Step 5: However, in some cases a manual update is required as well. That may be caused by the peculiarities of your WordPress theme.
Step 6: Login to the wordpress admin panel, in the left menu, go to Appearance > Editor menu .
Step 7: Select the Theme header file named header.php to edit.
Step 8: Find and edit or add following lines in the code.
<link rel="icon" href="http://www.yourdomain.com/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://www.yourdomain.com/favicon.ico" type="image/x-icon" />
Step 9: Then click on Update file and refresh the page.