Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

IE8 and favicon


Go to End


2 Posts   7140 Views

Avatar
TerryMiddleton

Community Member, 108 Posts

22 August 2009 at 7:02am

I'm not able to see the favicon in IE8.

Has anyone been able to solve this little pesky problem for ie8? It works in ie7, firefox but not ie8 - weird.

The code I have on all the pages is:

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

Thanks for any insight,

Terry

Avatar
dhensby

Community Member, 253 Posts

22 August 2009 at 10:42am

Edited: 22/08/2009 10:44am

Hi TerryMiddleton,

The <link> that you showed is the default that is in the SS Template and isn't valid XHTML (that i know of). Our trusty friend Wikipedia comes to the rescue here (http://en.wikipedia.org/wiki/Favicon#Standardization_and_implementation):

<link rel="icon" type="image/vnd.microsoft.icon" href="/somepath/image.ico" />

I use that for my sites and it shows in IE8... Maybe a rare example of microsoft complying to standards? Either that or because i put my favicons in the root and it finds them :P

If you have an icon in the root (/favicon.ico is a file) then browsers tend to pick that up automatically.

Make sure you have a favicon and it is where you address it, or for ease put it in the root.