Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » problem with favicon.ico

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2
Go to End
Author Topic: 6952 Views
  • Rube_25
    Avatar
    Community Member
    36 Posts

    problem with favicon.ico Link to this post

    hi everybody

    i have a problem with favicon.ico.

    I've made a 16*16 icon and I named it favicon.ico and I've replaced it in my server's root.

    I know I have to use this line code:

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

    but I dont know where exactly I should put it , or in wich file?

    because the file mysite\code home.php does not exist <head>

    I hope it can help me

    I feel sorry for my English
    rube

  • grilldan
    Avatar
    Community Member
    135 Posts

    Re: problem with favicon.ico Link to this post

    Try this:

    1) Upload the favicon.ico file to the root directory: /favicon.ico.
    2) Then apply ?flush=1 to your url: http://www.mysite.com/?flush=1
    or Delete your browsers cache

  • Rube_25
    Avatar
    Community Member
    36 Posts

    Re: problem with favicon.ico Link to this post

    hi grilldan.

    first thank you,
    I did www.mysite.com/?flush=1 on my page, and still can not get my icon appears
    that may be failing?
       
    or can I delete the cache?

    rube.
       
    again I feel sorry for my English

  • Double-A-Ron
    Avatar
    Community Member
    599 Posts

    Re: problem with favicon.ico Link to this post

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

    Should go at the top of your template SS file (e.g. Page.ss or HomePage.ss)

    Replace the standard Silverstripe icon with your own in the root directory.

    Clear browser cache

    Refresh

    If you still can't see it. You need to check that your favicon is valid.

    Aaron

  • grilldan
    Avatar
    Community Member
    135 Posts

    Re: problem with favicon.ico Link to this post

    I make my icons 72x72 and save them in png24 format, then use http://www.convertico.com/.

  • Rube_25
    Avatar
    Community Member
    36 Posts

    Re: problem with favicon.ico Link to this post

       
    thanks for all the help

    I managed to appear as the icon

    rube.

  • Rube_25
    Avatar
    Community Member
    36 Posts

    Re: problem with favicon.ico Link to this post

    again hello

    I saw that it works perfectly in Firefox, but IE does not have the favicon.ico

       
    which will be the problem?

    thanks
    Rube
    I feel sorry for my bad English

  • Matt Hardwick
    Avatar
    Community Member
    61 Posts

    Re: problem with favicon.ico Link to this post

    Internet Explorer will only read correctly formatted icon libraries with the extension of .ico

    The software icoFX can do this for you, but having a real icon does limit you somewhat, and it doesn't support transparency.

    Personally I don't care about IE users when it comes to the favicon, since over half the visitors to my site are FF users - and having a transparent icon means more to me than the few IE users.

    Hope that helps.

    6952 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.