An interesting little factoid that I stumbled upon fiddling around with Favicons is you can use the get_avatar built-in function to get your gravatar as a favicon on your WordPress blog. Please note this will only work if your WordPress blog admin email and gravatar email are the same and is achieved simply by adding this simple line of code in your theme‚Äôs header.php file in the <head> section.

<!– Gravatar as Favicon –>
<link rel=”shortcut icon” href=”<?php echo get_avatar( get_option( ‘admin_email’ ), ’16’ ); ?> ” />

Leave a comment

Your email address will not be published. Required fields are marked *