user979331
user979331

Reputation: 11951

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.

Upvotes: 2

Views: 3287

Answers (3)

Riu Mike
Riu Mike

Reputation: 51

Try this one

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

Upvotes: 1

kolin
kolin

Reputation: 2344

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?

Upvotes: 0

starbeamrainbowlabs
starbeamrainbowlabs

Reputation: 6116

try the following:

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

Upvotes: 0

Related Questions