Results 1 to 6 of 6

Thread: Favicon Site-Wide

  1. #1
    Join Date
    Feb 2009
    Posts
    303
    Thanks
    18
    Thanked 36 Times in 36 Posts

    Lightbulb Favicon Site-Wide

    I've seen this on many sites, including DD... How do I get the Favicon so that no matter where I am in my domain, it shows the Favicon. I have a hunch it's in the .htaccess file...

    If anyone can tell me, it would be greatly appreciated.

    Thanks,
    X96 D
    Last edited by X96 Web Design; 06-07-2009 at 10:51 PM.
    Alex Blackie, X96 Design
    My Website
    I specialize in: HTML5, CSS3, PHP, Ruby on Rails, MySQL, MongoDB, Linux Server Administration

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    just add a link to it in the <head> of every page. make sure that you use an absolute path, or root-relative path, to the image (or the correct relative path).
    Code:
    <link rel="shortcut icon" href="/favicon.ico">

  3. #3
    Join Date
    Feb 2009
    Posts
    303
    Thanks
    18
    Thanked 36 Times in 36 Posts

    Default

    I meant even if it's an image or a text file...

    For example, if you open DD's stylesheet: http://dynamicdrive.com/ddincludes/mainstyle.css there's still a favicon.

    Thanks,
    X96
    Alex Blackie, X96 Design
    My Website
    I specialize in: HTML5, CSS3, PHP, Ruby on Rails, MySQL, MongoDB, Linux Server Administration

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    For some browsers, it's enough if you just name the icon favicon.ico and put it in the root of your domain.

    Good luck!

  5. The Following User Says Thank You to Snookerman For This Useful Post:

    X96 Web Design (06-07-2009)

  6. #5
    Join Date
    Feb 2009
    Posts
    303
    Thanks
    18
    Thanked 36 Times in 36 Posts

    Default

    It worked perfectly! Thanks Snookerman...

    I learn something new every day...

    // X \\
    Alex Blackie, X96 Design
    My Website
    I specialize in: HTML5, CSS3, PHP, Ruby on Rails, MySQL, MongoDB, Linux Server Administration

  7. #6
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome X, that's what DD is for

    Happy coding!

Tags for this Thread

Bookmarks

Posting Permissions

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