Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » favicon.ico

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

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

Page: 1
Go to End
Author Topic: 3258 Views
  • lavergara
    Avatar
    10 Posts

    favicon.ico Link to this post

    Is there a way to add a favicon.ico. I added the following line and it is still not showing anything
    <link rel="Shortcut Icon" href="mysite/images/favicon.ico">

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: favicon.ico Link to this post

    Hi there,

    Yes you can.

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

    You have to use an absolute path to the icon, in the past I tried using a relative href like 'mysite/favicon.ico' but it failed to work. I don't think it respects the <base> element on page.

    Cheers,
    Sean

    3258 Views
Page: 1
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.