You can use the get_avatar built-in function to get your gravatar as a favicon on your WordPress blog. For more detail read the below reference links. If your WordPress blog admin email and gravatar email is the same, you can add this simple line of code in your theme’s header.php file in the <head> section.
[css]
<link rel="shortcut icon" href="<?php echo get_avatar( get_option( ‘admin_email’ ), ’16’ ); ?> " />
[/css]
Reference:
- http://codex.wordpress.org/Function_Reference/get_avatar
- http://codex.wordpress.org/Function_Reference/get_option
You may also be interested in our other articles on add favicon to wordpress site, remove url field in comment form, nofollow wordpress tag cloud and add ‘hr’ button to editor.
Leave a Reply