1

I'm having trouble getting my favicon to appear in Google search results. It works fine in browser tabs, but in Google search, it shows the default globe icon instead of my custom favicon.

Hosting Provider: Netcup File Structure: index.php (root) favicon.ico (root) (192px X 192px) In my head tag, I have

<link rel="icon" href="/favicon.ico" type="image/x-icon">

I also tried a favicon.png (192x192 and 512x512)

<link rel="icon" href="/favicon.png" type="image/png">

The favicon is accessible via https://example.org/favicon.ico, and I added:

Allow: /favicon.ico
Allow: /favicon.png

in the Robots.txt

Favicon is visible when I open it in the browser. Used URL Inspection Tool to request reindexing for favicon.ico. Cleared Cache → Waited for Google to update (several days), but still no favicon in search results. Tried placement → Made sure the tag is in the section.

Thanks for your help!

3
  • 1
    Google takes a little more time to update the favicon for your website. Please wait a few more days. Commented Mar 17 at 11:23
  • @OlgaS i searched everywhere and i cant find the Appearance tab in Google Search Console can u tell me where i can find it? Commented Mar 17 at 13:21
  • 2
    Are you sure this problem is in any way related to PHP? Commented Mar 17 at 14:11

1 Answer 1

0

I add something similar and I manually forced several times till it works :

  • Add this line in your code <meta name="robots" content="noindex, nofollow">
  • In Google Search Console go to setting and in the Crawl Stats you can click on Request Indexing. Google will then re-crawl your site.

Do not hesitate to check the size of your icon : if it is bigger than 48x48px the crawlers may not find it. Last thing you can do is use absolute path instead of relative one.

Hope this help

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.