Use Gravatar as Favicon in WP Blog


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:

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.


Comments

Leave a Reply

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