2

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.

user979331
  • 11,039
  • 73
  • 223
  • 418
  • 2
    I've found that browsers do weird caching on favicons... Have you tried a different browser? Also, have a read over [this question](http://stackoverflow.com/questions/2208933/how-do-i-force-a-favicon-refresh) and see if it helps – Christian Jun 19 '12 at 03:22
  • 1
    Thanks Christian...it did work on other browsers! – user979331 Jun 19 '12 at 03:25
  • 1
    Yep, sorry about that. Didn't realize the base URL. Haha sorry! If you copy/paste the URL of the ICO into the address bar, does it show it (in the problematic browser)? What browser is it not working in anyways? – Ian Jun 19 '12 at 03:28
  • i was firefox, but now it is working :) – user979331 Jun 19 '12 at 03:52

3 Answers3

1

Try this one

<link rel="shortcut icon" type="image/x-icon" href="/yourAssetFilePath/favicon.ico" />
Riu Mike
  • 51
  • 5
0

try the following:

<link rel="icon" href="icon.ico" type="image/x-icon" />
starbeamrainbowlabs
  • 5,692
  • 8
  • 42
  • 73
0

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?

kolin
  • 2,326
  • 1
  • 28
  • 46