Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Jul 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to create that menu icon thing?

    Yes, I'm the last person on earth that doesn't know how that works -- and believe me I've tried to figure it out by examining code -- but how exactly do you get that little menu icon (or bookmark icon?) -- you know, the small image to the left of the URL in the address window -- to be there?

    Also, does the image have to be a certain type? I have a small .jpg all ready to go.

    I'm sure this has been discussed but as I'm not sure what you call that thing I'm not sure how to find any previous threads.

    Thanks for your help.

  • #2
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,026
    Thanks
    2
    Thanked 315 Times in 307 Posts
    You are probably NOT the last person on earth that does not know this - http://en.wikipedia.org/wiki/Favicon
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #3
    New Coder
    Join Date
    Jul 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    additional info

    Thanks, CFM but I still can't get it to work!

    I should add that I just finished creating a favicon.ico file but still can't get it to work.

    All I've done is put this (as per your wikipedia link):
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    </HEAD>

    very strange.
    Last edited by phmayor; 12-01-2006 at 12:02 AM.

  • #4
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,300
    Thanks
    28
    Thanked 275 Times in 269 Posts
    The icon needs to actually be in Windows icon format, not simply a renamed GIF, PNG, JPEG, etc. format file. Depending on the browser you use, it may only be shown when you bookmark it too.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #5
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    For the record, I always just rename .gif files to .ico and it works fine for me. I'm sure there's a downside but I haven't run across it yet.

  • #6
    New Coder
    Join Date
    Nov 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.degraeve.com/favicon/

    I use these little java maker thingies. Try it.

  • #7
    Regular Coder
    Join Date
    Nov 2006
    Posts
    246
    Thanks
    13
    Thanked 26 Times in 24 Posts
    I learned this the hard way, but a lot of times, browsers will only pick it up if you have the exact URL to the favicon, so:

    <link type="image/x-icon" rel="shortcut icon" href="http://www.yoursite.com/favicon.ico" />

    Try that.

  • #8
    New Coder
    Join Date
    Jul 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks everyone. I have managed to get it to show up on one site -- but for some reason it doesn't show up when I preview it "off line." Oh well, I'm sure I'll figure it out. Thanks for your help.

    And yes, I used a site (mentioned in another post) for creating the .ico file so I'm pretty sure it must be in the right format.

    Thanks again. You are all very helpful.

  • #9
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,300
    Thanks
    28
    Thanked 275 Times in 269 Posts
    Quote Originally Posted by rmedek View Post
    For the record, I always just rename .gif files to .ico and it works fine for me. I'm sure there's a downside but I haven't run across it yet.
    Well, the image isnít of the media type image/x-icon then, itís of the type image/gif. Firefox can display GIF images, including animations, as favicons fine; I donít know if that would work in Internet Explorer et al though. I havenít tested icon formats in that browser since before Internet Explorer 7 was released.

    Quote Originally Posted by phmayor View Post
    Thanks everyone. I have managed to get it to show up on one site -- but for some reason it doesn't show up when I preview it "off line." Oh well, I'm sure I'll figure it out. Thanks for your help.
    I recall encountering the same problem; seemed to be some quirk where the file had to be uploaded to a server. I have a local server on my PC now; guess Iíll test it later and see if the icon is saved off‐line when a document is loaded from there.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •