0

I am trying to add icon to html page. Following is the code,

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

Here I am trying to get favicon.ico from specific path. This works on chrome but not on IE. IE 11 version

Asmita0915
  • 57
  • 1
  • 8

2 Answers2

0

Did you try this method:

<link rel="icon" href="url/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="url/favicon.ico" type="image/x-icon" />
<link rel="ICON" type="image/x-icon" href="http://example.com/myicon.ico"/>

Try any of these and check whether It worked for you.

Nitin Bisht
  • 5,053
  • 4
  • 14
  • 26
  • Thank you for reply, I tried all three combination but nothing changed. – Asmita0915 Jul 16 '18 at 10:01
  • Did you try this https://jay.lee.bio/blog/2013/04/30/the-definitive-way-to-create-a-favicon and also check the extension of your image whether it is .ico or not? Let me know then. – Nitin Bisht Jul 16 '18 at 13:14
0

Check this out: How do I force a favicon refresh

Basically, IE11 is fierce about caching the favicon. Adding a cache buster in the URL might fix it. Something like ../../images/favicon.ico?v=1.

Another user also suggested removing type="image/x-icon".

Ayman Safadi
  • 11,502
  • 1
  • 27
  • 41