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.

<link rel="shortcut icon" href="<?php echo get_avatar( get_option( 'admin_email' ), '16' ); ?> " />

 Reference:

You may also be interested in our other articles on add favicon to wordpress site, remove url field in comment formnofollow wordpress tag cloud and add ‘hr’ button to editor.

Leave a Reply