Favicon does not appear

Asked

Viewed 4,468 times

1

I generated the icon on http://www.favicon-generator.org/

I pasted the code that appears in the head after the tag <title>. And the images are in the root of the folder along with index.php

but no icon appears.

Does anyone know why?

  • Check the Inspect Element of Chrome to see if it really is taking the right path. If it is not, Inspect will error on the way.

  • Edit your question and add the generated code to see if it’s ok.

  • Either the link is wrong or it’s cache

  • It’s the same path, if I put the whole path of localhost <link rel="apple-touch-icon" Sizes="57x57" href="http://localhost/site/apple-icon-57x57.png">, so it works, but putting the link in the hand is wrong right? the original code is <link rel="apple-touch-icon" Sizes="57x57" href="/apple-icon-57x57.png">

2 answers

3

Try to clean up the cache, I also have this kind of problem.

If not cache is the path(path) that must be wrong.

  • 1

    It’s the same path if I put the whole path of the localhost <link rel="apple-touch-icon" sizes="57x57" href="http://localhost/site/apple-icon-57x57.png">, so it works, but putting the link in the hand is wrong right? the original code is <link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">

  • Nice. I’m glad you made it out.!

2


You should use the following line to insert a favicon:

<link rel="icon" href="../../images/favicon/image-32.png" sizes="32x32"/>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.