Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
909 views
in Technique[技术] by (71.8m points)

search - Google index showing Wordpress default favicon instead of set favicon

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").

Screenshot of Google Search Results

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You icon seems to be correctly retrieved by Google:

https://www.google.com/s2/favicons?domain_url=www.everyguy.co.nz

You now need to wait for Google to take your new favicon into account, which can take a few days or even longer.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...