+ Reply to Thread
Results 1 to 8 of 8

Thread: faveicon.ico not loading

  1. #1
    ryanmaelhorn77 Guest

    faveicon.ico not loading

    I made in icon in photoshop, 16 x 16 px, then generated an icon file from it using this website: http://tools.dynamicdrive.com/favicon/
    Then I placed it in my www folder, and added these lines of code to my index.htm:
    <link rel="icon" type="image/ico" href="favicon.ico"></link>
    <link rel="shortcut icon" href="favicon.ico"></link>

    but it doesn't load next to the url in my browser, or at the top of the browser tab

  2. #2
    carl6969's Avatar
    carl6969 is offline Community Support Team carl6969 has a brilliant futurecarl6969 has a brilliant futurecarl6969 has a brilliant future
    Join Date
    May 2009
    Location
    Calf Creek TX
    Posts
    6,862

    Re: faveicon.ico not loading

    Are your website files in www or public_html ? Index file is usually in public_html. Anyway, try putting your favicon in the public_html directory and see if that works. Also, try clearing your browser cache and reloading the page. Just a few thoughts.


  3. #3
    ryanmaelhorn77 Guest

    Re: faveicon.ico not loading

    hmmm, I've been putting everything in the www folder. Strangely though when I open up the public_html folder I see most of the files have been copied over there somehow, except for the .ico file. If everything is supposed to be put in the public folder, what is the www folder for? And am i right that things get autmoatically copied over from www to public?

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: faveicon.ico not loading

    public_html and www are different names for the same directory. public_html is the 'real' name and www is a link to public_html

    So putting a file into public_html is the same thing as putting it into www. One file into one directory. No copies.

    I think they have the two names because some software expects the document root of the website to be called public_html and some expect it to be named www.
    Nothing is always absolutely so.

  5. #5
    mattblog's Avatar
    mattblog is offline x10 Lieutenant mattblog is an unknown quantity at this point
    Join Date
    May 2010
    Location
    Ontario,Canada
    Posts
    464

    Re: faveicon.ico not loading

    Quote Originally Posted by ryanmaelhorn77 View Post
    I made in icon in photoshop, 16 x 16 px, then generated an icon file from it using this website: http://tools.dynamicdrive.com/favicon/
    Then I placed it in my www folder, and added these lines of code to my index.htm:
    <link rel="icon" type="image/ico" href="favicon.ico"></link>
    <link rel="shortcut icon" href="favicon.ico"></link>

    but it doesn't load next to the url in my browser, or at the top of the browser tab
    try adding a / in front of favicon.

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

    if that doesn't work go for the actual url of the website and then /favicon.ico

    you can also reference to
    http://www.axialis.com/tutorials/tutorial-iw004.html

    it says you can just use the following format



    <HEAD>

    <LINK REL="SHORTCUT ICON" HREF="http://www.domain.com/iconname.ico">

    <TITLE>Page Title</TITLE>

    </HEAD>
    Last edited by mattblog; 07-08-2010 at 10:03 PM.

  6. #6
    essellar's Avatar
    essellar is online now Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,152

    Re: faveicon.ico not loading

    Just a wee note here: if the file is actually called "favicon.ico" and lives in your web document root directory, you don't need to use a <link> tag to point to it. The rel="favicon" (or rel="shortcut icon") is just a way to override the browser's normal behaviour (that being to request and load favicon.ico) and use an arbitrary image instead (which can be of any recognised image type, like a PNG or JPEG).
    Last edited by essellar; 07-08-2010 at 10:56 PM.
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  7. #7
    ryanmaelhorn77 Guest

    Re: faveicon.ico not loading

    Well I put the .ico file in both the www and the public_html folder and it still isn't working..

  8. #8
    bhupendra2895's Avatar
    bhupendra2895 is offline x10 Elder bhupendra2895 is an unknown quantity at this point
    Join Date
    Jun 2010
    Location
    India
    Posts
    554

    Re: faveicon.ico not loading

    Modern webbrowsers automatically download web_root/favicon.ico, you don't even need to use link tag.I advise you to conduct some tests.
    1)Try different browser.
    2)Try different favicon.ico file in different browser and the browser you use.
    3)Open http://yoursite/favicon.ico in browser, is it opens and displays.If not then check the permissions of favicon.ico, is it set to 755 or not.
    4)Check if pages link to your site are opening perfectly or not, although this is impossible that they won't, but do this so you will be satisfied nothing is broken with the servers.
    5)Now it is your turn to post the results. :-)
    Last edited by bhupendra2895; 07-09-2010 at 10:29 PM.
    Liked this? Click on the icon on the bottom of post to make me .

+ Reply to Thread

Similar Threads

  1. Replies: 7
    Last Post: 07-12-2010, 04:32 PM
  2. Not Loading
    By kevwashere in forum Free Hosting
    Replies: 2
    Last Post: 05-01-2010, 02:34 PM
  3. Replies: 1
    Last Post: 03-12-2010, 11:52 AM
  4. CPanel not loading Website not loading
    By vpr2go in forum Free Hosting
    Replies: 5
    Last Post: 09-15-2009, 04:50 PM
  5. Replies: 1
    Last Post: 07-14-2008, 04:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers