how to add favicon to wordpress code example
Example: wordpress change favicon
1. Log in to your WordPress website.
2. Click on ‘Appearance’ -> ‘Customize’.
3. Click on ‘Site Identity’.
4. Here you can define your site name, tagline, logo, and icon. The image you
set under “Site Icon” will be used as your site’s favicon.
reference :
https://yoast.com/how-to-change-your-favicon-in-wordpress-a-step-by-step-guide/