phpnoob90 Posted February 1, 2008 Share Posted February 1, 2008 my favicon only displays whilst the site is loading, as soon as it has finished loading it dissappears, anyone have any idea why this might be? this is happening in firefox i have yet to test if it displays correctly in IE any help is much appreciated Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 1, 2008 Share Posted February 1, 2008 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"> Quote Link to comment Share on other sites More sharing options...
phpnoob90 Posted February 1, 2008 Author Share Posted February 1, 2008 yeh,i have also put the favicon.ico in the htdocs folder, the folder the index.php is in and numerous other places and no luck, the icon flashes up for a second and then goes back to default, its very strange. Quote Link to comment Share on other sites More sharing options...
phpnoob90 Posted February 1, 2008 Author Share Posted February 1, 2008 also i heard that firefox uses favicon.png, is this true? i have also tried with this format and still no luck Quote Link to comment Share on other sites More sharing options...
[-_-] Posted February 2, 2008 Share Posted February 2, 2008 You can use an animated gif in Firefox if you want for the favicon. Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted February 4, 2008 Share Posted February 4, 2008 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. Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 4, 2008 Share Posted February 4, 2008 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 Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted February 4, 2008 Share Posted February 4, 2008 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. Quote Link to comment Share on other sites More sharing options...
GameYin Posted February 5, 2008 Share Posted February 5, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.