Jump to content

[SOLVED] favicon


phpnoob90

Recommended Posts

Do you have these lines inside your <head>...</head> tags?

 

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

 

lol. What a waste of source code. Make sure you have favicon.ico in the root folder.

Link to comment
Share on other sites

Do you have these lines inside your <head>...</head> tags?

 

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

 

lol. What a waste of source code. Make sure you have favicon.ico in the root folder.

 

Wow really? If only we had tried that earlier...oh...wait...we did

Link to comment
Share on other sites

Do you have these lines inside your <head>...</head> tags?

 

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

 

lol. What a waste of source code. Make sure you have favicon.ico in the root folder.

 

Wow really? If only we had tried that earlier...oh...wait...we did

 

It is a waste of source code, because it is unnecessary. Make sure .htaccess has the proper info, make sure it's a favicon.ico file and make sure it is called exactly that! Finally, make sure it is in the root file! Don't have multiple files of the .ico file. This might be messing it up.

Link to comment
Share on other sites

You only need 1 line of code to call a favicon. If you have 2 icons then the browser won't know which one to use and thus an issue occurs.

 

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

 

This is the one I use. Having the favicon in the root folder is most of the time the only thing needed, but sometimes the access of the files isn't set for the users to see if they go to your website, so using the code is sometimes good to use.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.