X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   favicon.ico (https://forum.x-cart.com/showthread.php?t=37764)

boomobile 02-21-2008 02:51 PM

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?

photo 02-21-2008 02:56 PM

Re: favicon.ico
 
Quote:

Originally Posted by karen@boomobile.com
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?


You would just place it in the root folder.

boomobile 02-21-2008 03:01 PM

Re: favicon.ico
 
Thanks!!!

balinor 02-21-2008 03:25 PM

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" />

Holub 02-22-2008 01:29 AM

Re: favicon.ico
 
Most of browsers try to load favicon.ico automatically from the root.

mlalande 03-04-2008 06:48 AM

Re: favicon.ico
 
mine wont...just a little white icon appears instead...any idea why?

balinor 03-04-2008 06:49 AM

Re: favicon.ico
 
How did you create the .ico file? You can't just use a .jpg or .gif....

kube 03-04-2008 07:00 AM

Re: favicon.ico
 
this is a handy app for some decent conversions...

http://tools.dynamicdrive.com/favicon/

photo 03-04-2008 07:03 AM

Re: favicon.ico
 
Quote:

Originally Posted by kube
this is a handy app for some decent conversions...

http://tools.dynamicdrive.com/favicon/



Nice find. :lol:

boomobile 03-06-2008 09:45 AM

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?

balinor 03-06-2008 09:56 AM

Re: favicon.ico
 
No, there is probably one for the customer side in customer/home.tpl, while the admin side is single/home.tpl.

boomobile 03-06-2008 01:37 PM

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.

kube 03-06-2008 01:57 PM

Re: favicon.ico
 
Quote:

Originally Posted by karen@boomobile.com
Admin dosen't have the line: <link rel="shortcut icon" href="favicon.ico" />


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.

boomobile 03-06-2008 02:02 PM

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.

kube 03-06-2008 02:09 PM

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

boomobile 03-06-2008 02:14 PM

Re: favicon.ico
 
It's not pulling favicon at all, so now I'm really confused...:(

kube 03-06-2008 02:39 PM

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)

boomobile 03-06-2008 02:51 PM

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

boomobile 03-06-2008 03:03 PM

Re: favicon.ico
 
OK can't find any duplicates of favicon.ico

kube 03-06-2008 03:19 PM

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.