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.

General Questions /

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

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

IE8 and favicon


Reply


2 Posts   5861 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
Pigeon

Community Member, 243 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.