How to create a website icon that shows in the URL?

Discussion in 'HTML & Website Design' started by netpox, Sep 20, 2007.

  1. #1
    I see that some websites have an icon in the url field in your browser. Look at dp it has its little logo in the url in the browser. (it does for me on ie7).

    How do you create these and apply them to your website? is it an image? or an .ico file?
     
    netpox, Sep 20, 2007 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    it's an .ico file
    several graphic SW can create .ico files
    the size of the .ico is 16x16 px

    then

    1.
    upload that file on domain/root level - in this example as file
    favicon.ico

    and
    2.
    in each HTML page - a new meta tag needs to be added

    <link rel="shortcut icon" href="/favicon.ico" type="image/x-ico">

    if you offer offline pages for reading - such as I do - then you may add a RELATIVE path instead of above server-root to assure that all offline read pages also show the favicon in the browser.

    there might be other versions - above is the method i use since many years on my site.
     
    hans, Sep 20, 2007 IP
  3. Blame Me

    Blame Me Guest

    Messages:
    162
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    With all those post you have I would of thought you would of seen all the other threads about this, usually one a week at least.

    Anyway you didn't see here we go.

    They are called favicon's or the actaul file should be favicon.ico You don't have to add a meta tag to a page (but helps), as long as the favicon.ico is in the root level of your site it should be picked up and shown.

    If you want to make one the best place for this (and takes out all trouble out of doing things yourself) is http://www.htmlkit.com/services/favicon/

    You will also get instructions on how to make one, where to place it and whats best practice.

    Hope that helps.
     
    Blame Me, Sep 20, 2007 IP
  4. netpox

    netpox Active Member

    Messages:
    1,625
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    90
    #4

    Cool thanks for your help!
    There was already an icon in my root that came with the script i got for my website so i replaced it with a new icon i just made but when i open the website it still shows the old one.
     
    netpox, Sep 20, 2007 IP
  5. simonpeterong

    simonpeterong Peon

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I don't see an icon nor a link to your icon...

    check it out.

    :)
     
    simonpeterong, Sep 20, 2007 IP
  6. Subliminal

    Subliminal Active Member

    Messages:
    322
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    I 've seen websites use both the following tags to use a favicon
    
    <link rel="shortcut icon" href="http://www.mysite.com/favicon.ico" type="image/ico" />
    <link rel="shortcut icon" href="http://www.mysite.com/favicon.ico" type="image/x-icon">
    
    Code (markup):
    If you still see the old image delete the cache of your web navigator or press F5 to refresh the contents of the page and reload.

    Happens to me all the time when i am behind a proxy :)
     
    Subliminal, Sep 30, 2007 IP
  7. clinton

    clinton Well-Known Member

    Messages:
    2,166
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    110
    #7
    Lol, I made random icons on my site.
     
    clinton, Sep 30, 2007 IP
  8. T.Ace

    T.Ace Peon

    Messages:
    57
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    thats called the Favicon all you need to do is make an image save it as .ico and upload it to ur public_html folder and you have it!
     
    T.Ace, Sep 30, 2007 IP
  9. clinton

    clinton Well-Known Member

    Messages:
    2,166
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    110
    #9
    btw, If you don't have something to create icons, you can do it www(dot)favicon(dot)cc

    you can draw it or upload your image to make a custom icon.
     
    clinton, Sep 30, 2007 IP