In this post we are going to Add a Favicon to a SharePoint Site or any regular website.
A favicon is an
image(.ico extension) associated with a particular Web page or a complete Web
site. Favicon (pronounced fav-eye-con) is short for 'Favorites Icon.'
In Internet Explorer the Favicon
is displayed on the Address bar and in the Tab.
Below are the steps to achieve
this.
Step1:
Create a .ico image file with
the below link by uploading your Logo.
Once the .ico file is created
save it as favicon.ico and make sure it is of 16*16 Pixels.
Step2:
Adding the favicon reference to
our website.
Add the below reference in the
<head> section of your master page so that favicon will be displayed
across the website. Or if you want to show it on particular page only, then add
it to respective page itself.
<link rel="shortcut icon" href="your_path_to_favicon/favicon.ico" type="image/vnd.microsoft.icon" />
In Sharepoint to achieve the
same we can use either the above code snippet or we can make use of below
Sharepoint control SPShortcutIcon.
<SharePoint:SPShortcutIcon ID="SPShortcutIcon1" runat="server" IconUrl="/_layouts/images/favicon.ico"/>
You can give the IconUrl
reference by placing the image either in the 14 hive or in the Image Library of
your site collection. Both will workout.
Hope this helps...
No comments:
Post a Comment