Favicon won't load, even when going to the direct URL -


the favicon isn't working on site. if go google.com/favicon.ico see image displayed. reason on site, lucasjohnson.co.uk/favicon.ico prompts me download file. have tried replacing own favicon google's, still have same problem.

edit: file ico file converted png using dynamic drive's favicon generator.

i checked http://www.lucasjohnson.co.uk/favicon.ico, , response content-type text/plain. there several content types can used favicon, text/plain not 1 of them.

the common ones image/x-icon , image/vnd.microsoft.icon.

so basically, choose 1 of following content types , add link tag:

<link rel="icon" type="image/vnd.microsoft.icon" href="http://www.lucasjohnson.co.uk/favicon.ico" /> <link rel="icon" type="image/png"                href="http://www.lucasjohnson.co.uk/favicon.ico" /> <link rel="icon" type="image/gif"                href="http://www.lucasjohnson.co.uk/favicon.ico" /> <link rel="icon" type="image/x-icon"             href="http://www.lucasjohnson.co.uk/favicon.ico" /> 

see http://en.wikipedia.org/wiki/favicon more details.

btw, regardless (or not) of problem, i've noticed you're not closing 1 of meta tags:

<meta name="viewport" content="width=device-width"> 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -