[英]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 嘿,我的favicon.ico文件具有以下代码行
<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? 为我工作,虽然它确实做一些有趣的缓存的事情,我认为它是在IE中,您需要在页面出现之前对其添加书签?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.