Reputation: 1017
i know this may be a stupid question, but i am trying to add an icon to my website, and for some reason it isn't showing up. Ive tried putting the favicon.ico in the root folder, and it doesn't show, and i've also tried using the following pieces of code in HTML
<link rel = "shortcut icon" href = "images/icon.ico">
<link rel = "shortcut icon" type = "image/x-icon" href = "images/icon.ico">
<link rel = "icon" type = "image/png" href = "images/icon.png">
Obviously i have all the images, and i'm not trying to use a image that doesn't exist. At the moment i'm using chrome and i've tried with IE
Upvotes: 0
Views: 224
Reputation: 23102
Favicons are heavily cached, and differently from temporary Internet files like images, so it may just be that the favicon got cached in the wrong way during initial loads. I would configure it how you would like it to work (probably just stick the favicon in the root folder of the site, you can override on specific pages) and only then open up the site/page on a totally new browser and bookmark the page. The browser should be one that you haven't tested the site on before.
Upvotes: 2
Reputation: 2025
Now any browser find favicon.ico in your website root. Like http://example.com/favicon.ico and your no need to any code.
If this not work, download favicon.ico from any website and try with this icon.
Upvotes: 0