World of Leion

Adding favicon to WordPress

by on Apr.27, 2006, under Howtos

I just found out that icon beside the url at the browser address bar is called a ‘favicon’. Actually I wanted to make one of those icons long ago. I just do not know what is that called. Now I finally know. Ok the steps to make it are really simple. The instructions are for WordPress users but the steps are valid for any website. Just change the pathnames. They are:

  1. Choose your picture, make sure it is squarish
  2. Resize it such that is is only 16 by 16 pixels
  3. Convert to ICO format OR upload that picture to this site and have it converted for you
  4. Upload the newly made favicon.ico to your /wp-includes/images/ directory or any other prefered directory
  5. Open up your header.php file, or go to your header section of all your webpages
  6. Add in the following, anywhere between the <head> and </head> tags: <link rel=”shortcut icon” href=”<?php echo get_settings(‘siteurl’).’/wp-includes/images/’;?>favicon.ico” />

  7. That’s it!

The website made returned an animated icon as well. To use it just follow the instructions included in the zip file. It is very helpful. Ok I shall list that extra instruction here as well.

  1. The animated file is called animated_favicon1.gif
  2. Put the gif file with the favicon as mentioned above
  3. Add the following in the header.php file as well: <link rel=”icon” href=”<?php echo get_settings(‘siteurl’).’/wp-includes/images/’;?>animated_favicon1.gif” type=”image/gif” />

  4. Done!

Now, your webpage will show the animated gif while the page is loading. And when the page has done loading, the ico picture will be displayed.


10 Comments for this entry

2 Trackbacks / Pingbacks for this entry

Leave a Reply

Archives