9.15.2011

How to display your web site logo on the address bar (Favicon)


you can now change the usual icon of your blog or website in the address bar and can display the icon you want.This will help you look your website better and more professional. You just need to do is to make an icon of size 16X16 in the .ico format or .gif format. Here you can do it simply by uploading the picture of your icon or you can download the application from here itself.


First, you have to create a logo for your site; a very tiny logo to be specific. The size of the logo should be 16x16 pixels and it should be saved as a Windows icon file (logo.ico for example). If your image editor doesn't support saving files in Windows icon format, you can use the following online tool or download an icon editor from a shareware site.




Once you have an icon file with your logo, you're ready to take the final step. Following methods will work in Explorer 5.x and higher without having any negative effects on other browsers.
Method 1
This is the easiest method to implement and it will work regardless of the particular page on your site users choose to add to their favorites list. Don't worry if you don't have access to your web site root; take a look at the next method.
If you have access to the root of your web site, simply save your icon file as "favicon.ico" there. For example, if your web site is "www.chami.com", your icon file should be available at "www.chami.com/favicon.ico". The web browser will look for favicon.ico whenever your site is added to the favorites list and if it is found at the root of your web site, the icon will appear next to the link to your site.
Method 2
If you don't have access to the root of your web site, you have to add the following tag to your web page so that the browser will know where to look for your icon. Unlike before, this time you can save the icon under any name ending with ".ico" We'll use the name "logo.ico" and assume that your web site is under the directory "~your_directory".

<LINK REL="SHORTCUT ICON"        HREF="/~your_directory/logo.ico">
Listing #1 : HTML code. Download logo.htm (0.2 KB).
    NOTE:Above tag should be inserted in-between the <HEAD> and </HEAD>tags.

By the way, you can specify multiple logos for multiple pages using the second method. Simply save your icons using unique names, such as logo1.ico, logo2.ico, logo3.ico for example, and replace "logo.ico" in the above HTML code with the name of the icon you want to use for any particular page.





0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...