简体   繁体   中英

Not showing the favicon icon in chrome

I had inserted the tag:

<link rel="shortcut icon" href="Survey2016/favicon.ico"/> 

This shows the icon in the Firefox browser, but it is not showing the in Chrome.

This is my tag:

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

Best practice is to just store the favicon in the root directory – or at least make it accessible there (through a URL rewrite fe).

You already did that, so you could remove the tag altogether. This is why you'd do that, you save a line of HTML.

With favorite icons, caching is a big problem. Sometimes opening the favicon directly (by typing /favicon.ico in the address bar) and then hard reloading (Shift+F5 or Shift+Click Reload) helps.

You might be having an old version of chrome which do not support favicon hosted on you local computer. Please host that image to an internet server and use it from that hosting website, that might help you.

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