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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.