SP2010 Branding Tip #4 – Easily show a Favicon in SharePoint 2010

If you aren’t aware of what favicons are, they are the little icon that appears in the corner of the address bar of your browser and along with your bookmarks. Here is a shot of SharePoint911’s favicon:

image

Its really a minor thing, but it makes a surprisingly big impact on a branded page. In SharePoint 2007 we had to mess around with the typical HTML tag for the favicon:

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



But, in SharePoint 2010 there is a special control for adding favicons:




<SharePoint:SPShortcutIcon runat="server" IconUrl="/Style Library/sp911/favicon.ico"/>




Ok, sure its technically more typing, but since its a control you can easily use things like $SPUrl to help with the paths.

4 comments:

Anonymous said...

utegulsenny
rp5d

Dan said...

I've tried several ways to change the favicon (even replacing the default to the one I want), and still nogo - keeps showing the default favicon.

Randy Drisgill said...

Be careful because IE sometimes caches the heck out of the favicon state. Make sure you make a new bookmark and clear the cache and close and open IE. Firefox sometimes is easier.

Dan said...

That's what I had to do - just coming back out here to say nevermind. I had to kill the cache on both my PC and the sharepoint server, but now it's showing up. Thanks!