I am at a complete loss over this one. I have built this website:
https://www.everyguy.co.nz/
If you go to that site, you will quite clearly see that the site has it's own custom favicon (a red "EG").
This favicon is a 144x144 pixel .ICO file and has been added into the site section like so:
<link rel="shortcut icon" href="https://www.everyguy.co.nz/wp-content/uploads/2020/11/favicon.ico"/>
I also have the following code in the theme's functions.php file:
// DISABLE WORDPRESS DEFAULT FAVICON //
add_filter( 'get_site_icon_url', '__return_false' );
I have tested the above code by removing the custom favicon and the favicon does, indeed, completely disappear and is not being replaced by Wordpress's default favicon.
HOWEVER, Google absolutely insists on indexing the site with Wordpress's default icon instead of the custom icon! (Search term: "Everyguy", "Everyguy Hair" or "Everyguy Haircuts").
I have tried resubmitted the site's sitemap in Google Search Console and I have also used Google Search Console's URL Inspection tool to submit the site's URL for recrawling. It has recrawled the site several times over the last week and yet the default Wordpress favicon remains in Google's search results!
Does anyone have any ideas or suggestions here?
question from:
https://stackoverflow.com/questions/65910014/google-index-showing-wordpress-default-favicon-instead-of-set-favicon 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…