Welcome to Geeklog, Anonymous Thursday, October 03 2024 @ 06:51 pm EDT
Geeklog Forums
Favicon Oddness
Jager
Anonymous
So I put a favicon in my public_html directory. Everything seems to be working right... You go to the URL, the little pretty graphic pops up next to the URL as it should...but then I click around the site and the favicon goes away.
It's not browser specific because it works fine when I click to other sites (like geeklog.net).
Any idea why it'd be doing this as I click around my geeklog site? Just for fun I put favicon.ico everywhere just to see if that fixes it, and it doesn't. Viewing the source on the pages where it doesn't show up seems to have the right HTML. Ahhhh! Any help would be appreciated.
It's not browser specific because it works fine when I click to other sites (like geeklog.net).
Any idea why it'd be doing this as I click around my geeklog site? Just for fun I put favicon.ico everywhere just to see if that fixes it, and it doesn't. Viewing the source on the pages where it doesn't show up seems to have the right HTML. Ahhhh! Any help would be appreciated.
6
4
Quote
Status: offline
drshakagee
Forum User
Full Member
Registered: 10/01/03
Posts: 231
I would bet your favicon isn't in the .ico format or at least isn't properly formated. You can't just name a gif favicon.ico and have it work (although it will work on some browsers).
Yes I am mental.
Yes I am mental.
4
4
Quote
Jager
Anonymous
Quote by drshakagee: I would bet your favicon isn't in the .ico format or at least isn't properly formated. You can't just name a gif favicon.ico and have it work (although it will work on some browsers).
Nope, I used a "favicon" program off the site that Dirk posted to create it so I don't think that's it.
I tried the site with other machines and 50% don't have the problem at all, and 50% have the intermittent problem. They all see the favicon on the first page but only 50% will see the favicon after I click around a bit. It's strange... The only thing I can see in common so far is what ISP I'm using - which makes no sense to me at all.
7
4
Quote
Status: offline
drshakagee
Forum User
Full Member
Registered: 10/01/03
Posts: 231
You might want to try making it non-transparent then. I don't know if all browsers support transparent favicons.
Yes I am mental.
Yes I am mental.
5
6
Quote
Status: offline
windance
Forum User
Newbie
Registered: 05/15/05
Posts: 4
Old thread but the right answer considering I had the same problem.
In your theme header.thtml, change how the link reads from this:
to this:
<link rel="SHORTCUT ICON" href="{site_url}favicon.ico">
In other words. remove the ' / ' because with the slash, its saying 'look in the server root, and of course, its not there. When you remove the slash you're getting a relative reference to the file where it IS in your public_html/gL directory.
or ... you can do this, remove 'site URL' like this:
In your theme header.thtml, change how the link reads from this:
Text Formatted Code
<link rel="SHORTCUT ICON" href="{site_url}/favicon.ico">to this:
<link rel="SHORTCUT ICON" href="{site_url}favicon.ico">
In other words. remove the ' / ' because with the slash, its saying 'look in the server root, and of course, its not there. When you remove the slash you're getting a relative reference to the file where it IS in your public_html/gL directory.
or ... you can do this, remove 'site URL' like this:
Text Formatted Code
<link rel="SHORTCUT ICON" href="/favicon.ico">
3
6
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by windance: In other words. remove the ' / ' because with the slash, its saying 'look in the server root, and of course, its not there. When you remove the slash you're getting a relative reference to the file where it IS in your public_html/gL directory.
Something must be wrong in your setup then. {site_url} is replaced with whatever is in $_CONF['site_url'] and that URL should not end in a slash ...
bye, Dirk
5
5
Quote
Status: offline
windance
Forum User
Newbie
Registered: 05/15/05
Posts: 4
Don't you ever sleep!? You are correct of course....and thanks for the post! I looked in my config and wouldn't you know it.... for $_CONF['site_url'], it says "(no trailing slash)" and duh... I had one.
On another note .... heh, at least 'I think' I know this one... why favicons don't show in IE is because after 6.0, they stopped supporting them. However, 'some' will still show (like Yahoo, etc..) if you add it to your favorites thingie.
Thanks again Dirk.
On another note .... heh, at least 'I think' I know this one... why favicons don't show in IE is because after 6.0, they stopped supporting them. However, 'some' will still show (like Yahoo, etc..) if you add it to your favorites thingie.
Thanks again Dirk.
6
5
Quote
All times are EDT. The time is now 06:51 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content