简体   繁体   中英

Favicon is not displaying in google chrome

I have a html site.The issue is favicon not working in chrome but it worked well in Firefox & Safari.

Anyone can help me to get rid of this issue?

<link rel="shortcut icon" type="images/ico" 
href="http://www.example.com/images/favicon.ico" />

I was having exactly the same problem. Then I tried refreshing the page by doing Ctrl + Shift + R . It worked!

Have a look at this question: Favicon not showing up in Google Chrome

1) Clear your cache. http://support.google.com/chrome/bin/answer.py?hl=en&answer=95582 And test another browser, lets say safari. How did you import the favicon?

2) How you should add it:

Normal favicon:

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

PNG/GIF favicon:

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

3) Another thing could be the problem that chrome can't display favicons, if it's local (not uploaded to a webserver).

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

Also, if your icon is too small, double the size. That worked for me when I had this issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM