How to add a favicon to your blog site?

Programming for Search Engines 101. An area for avid PHP and .NET developers to chat about Programming techniques and how to make better use of search engines.

Moderator: Moderators

How to add a favicon to your blog site?

Postby anit » Wed Oct 14, 2009 4:21 am

To add a favicon to your site in WordPress, place your favicon.ico file inside your theme folder (for example: wp-content/themes/default/) then add this line to header.php:

<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />

Be sure to add it somewhere within the <head></head> section.

See a Favicon For more detailed instructions
anit
 

Re: How to add a favicon to your blog site?

Postby latha » Wed Oct 14, 2009 5:29 am

Thanks Anit.
What are the general dimensions for favicon.ico ?
latha
 

Re: How to add a favicon to your blog site?

Postby jay » Wed Oct 14, 2009 5:48 am

16 * 16 (width * height)

Why wait, create one now -
Jay M
Write Less, Do More
jay
 
Posts: 475
Joined: Wed Nov 22, 2006 12:05 am
Location: Cochin, India.

Re: How to add a favicon to your blog site?

Postby anit » Wed Oct 14, 2009 5:55 am

One universal rule about favicon.ico files is that they always have to have dimensions of 16 x 16 pixels (or 32 x 32 pixels, but 16 x 16 pixels is the standard). The color depth should be 8-bit or 24-bit, and they should be static images; Firefox can display animated .gif files as favicons, but no other major browser can.

Know more
anit
 

Re: How to add a favicon to your blog site?

Postby C-Note » Wed Oct 14, 2009 9:23 am

I really like favicons, i think they give the site a bit more personality, and highlights them better within a user's bookmarks
We should look at adding this to our web dev process
C-Note
 

Re: How to add a favicon to your blog site?

Postby prasanth » Wed Oct 14, 2009 10:20 pm

Yes we should add favicon to our Web Development Process!

Douglas, can you please add this to our QA check list list? Thanks in advance!
Mr. P

prasanth
 
Posts: 304
Joined: Fri Nov 24, 2006 1:52 am

Re: How to add a favicon to your blog site?

Postby latha » Wed Oct 14, 2009 10:58 pm

latha
 

Re: How to add a favicon to your blog site?

Postby elan » Thu Oct 15, 2009 12:02 am

Google has changed their favicon three times in the past one year. Earlier it was a "capital G" and changed to "small blue g" and now its "color g".

Setting up favicon may take some time as its related with server, but its worth!
let's optimize everything
elan
 
Posts: 87
Joined: Thu Apr 02, 2009 4:42 am

Re: How to add a favicon to your blog site?

Postby douglas » Thu Oct 15, 2009 2:00 am

douglas
 
Posts: 282
Joined: Fri Feb 20, 2009 3:56 am


Return to Programming

Who is online

Users browsing this forum: No registered users and 5 guests

cron