![]() |
favicon.ico
Does anyone know how a browser displays the "favicon". Is it controlled by a x-cart template? if so which one? Or would I just place the icon in the root folder of my site?
|
Re: favicon.ico
Quote:
You would just place it in the root folder. |
Re: favicon.ico
Thanks!!!
|
Re: favicon.ico
To be safe, you should also add this line to customer/home.tpl in the head:
<link rel="shortcut icon" href="favicon.ico" /> |
Re: favicon.ico
Most of browsers try to load favicon.ico automatically from the root.
|
Re: favicon.ico
mine wont...just a little white icon appears instead...any idea why?
|
Re: favicon.ico
How did you create the .ico file? You can't just use a .jpg or .gif....
|
Re: favicon.ico
|
Re: favicon.ico
Quote:
Nice find. :lol: |
Re: favicon.ico
Now I have a new problem, it seems the previous person wrote an if/else reguarding what favicon to view depending on if you are on the admin or customer side. Would this code be on the home.tpl?
|
Re: favicon.ico
No, there is probably one for the customer side in customer/home.tpl, while the admin side is single/home.tpl.
|
Re: favicon.ico
Admin dosen't have the line: <link rel="shortcut icon" href="favicon.ico" />
But the customer side does. So I'm thinkin that the customer side is being directed somewhere else besides the root dir. Any thoughts? Also when I place the line: <link rel="shortcut icon" href="favicon.ico" /> the icon dissapears from the customer side, no effect to admin side. |
Re: favicon.ico
Quote:
Is this from viewing your resulting source via the browser (view source)? Also, locate the differing favicons from viewing the customer's source and admin's source. If there are no href="favicon.ico" (or something similar) in one or the other then usually your Browser is playing tricks with you. Some browsers have a grey area regarding the favicon. If from viewing the source you find 2 different favicon locations you should be getting closer to resolving your problem. Hope this helps. |
Re: favicon.ico
I use a html editor to view the actual files, not from the browser.
Both sides display an icon, but they are different. I uploaded a new icon, but the old one dislpays on the customer side still. I'm still trying to locate where the icon is being pulled from. |
Re: favicon.ico
If the html editor isn't helping you locate the favicons then do a View Source from the browser. So when the source comes up do a CTRL+F (Find) and search for .ico or favicon. Hopefully, you should find out if they exist or not and where they are located in relation to your server. You can then proceed in finding it within the .tpls somewhere
|
Re: favicon.ico
It's not pulling favicon at all, so now I'm really confused...:(
|
Re: favicon.ico
Try another browser and see if it is doing the same thing? I think this is the grey area I mentioned but it is still a while yet to finding out what is going on.
Can you confirm there is a favicon.ico you have uploaded that is located in your root folder on your server? (check for correct extension, name, etc.). and if so try in the <head>...</head> part of your .tpl with... <link href="http://www.your_domain_here.com/favicon.ico" rel="shortcut icon" /> And try it in a different browser again (preferably not Internet Explorer) |
Re: favicon.ico
OK i checked using the following: Netscape, Firefox, IE. It's doing the same thing in all of them. I have a correctly formatted ico image named favicon.ico (no it's not a gif, or a jpeg or any other format) placed in the root directory. I will do a search of the server now to see if there is a duplicate favicon.ico stashed somewhere...
|
Re: favicon.ico
OK can't find any duplicates of favicon.ico
|
Re: favicon.ico
Cool...
If it isn't coming up in source and you have hard-coded it in your tpl perhaps you might have to refresh the x-cart cache? Make sure the changes are occurring via the View Source. If the favicon goes blank again and it is viewable in source that could also mean a number of things. A couple most likely reasons are that either it isn't located rightly or the favicon is corrupted. Copy the favicon's url from source and paste into the browser's address bar (and do this in Internet Explorer) and see if it comes up as an image. If you get an error then try locating the url of your favicon via the address bar and, when you find it, paste the good url into your tpl that way. Other things to note: Remember, it doesn't have to be called favicon and in some browsers it doesn't have to be in the HTML. Some browsers sometimes by default looks for favicon.ico. You could try looking for "shortcut icon" or looking through all the <link in the head section of the HTML if you suspect there is another favicon lingering about. |
All times are GMT -8. The time now is 02:46 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.