Tuesday, September 23, 2008

Setting up the Favicon in a MOSS site

I had this requirement of displaying an icon in the address bar of the browser, whenever I try to visit the MOSS web site. I knew it was to be a simple solution hence started looking around if someone had already posted this, and I found this.
The posting at this web site: http://www.sharepointblogs.com/mossman/archive/2008/01/18/favicon-s-in-a-sharepoint-master-page.aspx
really talks about a simple solution of inserting a single line of code within your Master page in the head section and placing the .ico files in the appropriate folder.
I placed my Favicon.ico in the images sub-directory and inserted this code:
(rel="shortcut icon" href="/images/favicon.ico" ) within the opening and closing "link" tags, in the .master page just above the closing "head" tag, published and check-in the master page and there you go.

Here is one catch though.
- IE6 still wasn't displaying this icon, only if you add the site to your favourites it displays in the menu item. Not sure about this, does anyone has a resolution to this.
- IE7 and FireFox did that instantly, but of course, you need to close and open a new browser.

But anyways, that worked !!!
Thanks to Mossman.