3

I'm having problems with putting a favicon on my website.

I have this code

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

And for some reason Firefox shows the favicon fine, but on Webkit browsers its not showing up. I tried Google Chrome and Safari on a Mac and its not showing up; do I need to do something for these browsers?

TRiG
  • 9,687
  • 6
  • 54
  • 105
Doug Molineux
  • 11,955
  • 25
  • 89
  • 141

1 Answers1

3

Try placing a relative path and change the type to "image/x-icon":

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

Or just place it on the root:

<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
Mohamed Mansour
  • 38,137
  • 10
  • 113
  • 89