简体   繁体   中英

Favicon.ico is not working…is there something wrong with my code?

Hey ya'll I have this line of code here for my favicon.ico file

<link rel="Shortcut Icon" href="http://www.myurl.com/wp-content/themes/twentyeleven/favicon.ico" />

The file is in the right place and I cleared my cache and restarted my browser and its not working, it is also placed inside my header tags.

试试这个

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

尝试以下方法:

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

yeah, i just have

<link rel="SHORTCUT ICON" href="/favicon.ico" />

works for me, it does do some funny caching thing though, and i think it's in IE that you need to bookmark the page before it appears?

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