icon beside the <title> how?

Discussion in 'PHP' started by Hannaspice, Jul 1, 2009.

  1. #1
    Hi ul,

    I have just an easy question,

    the icon besides the <title> usually is same as the logo, which I don't know how exactly to make it.

    It is an example below:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta http-equiv="content-language" content="en" />
    <meta name="author" content="Hannaspice" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="robots" content="all" />
    <title>Digitalpoint<?php print $title_block; ?></title>

    And how can I show this icon onto homepage?
     
    Hannaspice, Jul 1, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    Name the icon file as favicon.ico normally browsers detect it and show it without putting a meta code


    You can also put this code in the head section

    <link rel="icon" href="/favicon.ico" type="image/x-icon">
     
    Bohra, Jul 2, 2009 IP
  3. www.amagit.com

    www.amagit.com Peon

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Also, if you have a file that needs to be converted to an ico, I can do that for you if you post it somewhere for me.
     
    www.amagit.com, Jul 2, 2009 IP
  4. neegeris

    neegeris Banned

    Messages:
    73
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It can be other type too not exactly ico
     
    neegeris, Jul 2, 2009 IP
  5. LOD

    LOD Member

    Messages:
    319
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #5
    thanks i was looking for this too....
     
    LOD, Jul 2, 2009 IP
  6. newgenservices

    newgenservices Well-Known Member

    Messages:
    862
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    105
    Digital Goods:
    1
    #6
    Most latest browsers even support .gifs these days which is why you see some cool animated stuff against your bookmarks or in the favicon spot of your address bar. But do remember that you are leaving the older browsers without anything unless you are willing to provide a .ico for the older ones and .gif for the newer browsers. Just a bit too complicated for brand promotion.
     
    newgenservices, Jul 2, 2009 IP
  7. Beginn3R

    Beginn3R Peon

    Messages:
    120
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    There is something named ico animations, not gifs :confused:, you cant use gif file as a favicon :S
     
    Beginn3R, Jul 2, 2009 IP
  8. newgenservices

    newgenservices Well-Known Member

    Messages:
    862
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    105
    Digital Goods:
    1
    #8
    @Beginn3R : You seem to be true to your username :p

    Jokes apart. We can use animated GIFs as favicions today.

    Try

    
    <link rel="shortcut icon" href="favicon.ico" >
    <link rel="icon" href="animated_favicon.gif" type="image/gif" >
    
    Code (markup):
    favicon.ico is for the older browsers while the animated_favicon.gif takes care for the newer browsers. For now, Firefox supports this for sure as its UI uses XML, CSS and renders images while IE does not but who cares :p
     
    newgenservices, Jul 2, 2009 IP
  9. Hannaspice

    Hannaspice Active Member

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #9
    many tks to you guys,

    it works.
     
    Hannaspice, Jul 3, 2009 IP