Display Gravatar Image as Favicon in WordPress

If you want to use gravatar image as favicon then here is a fine solution, add following snippet to the functions.php in your WordPresstheme folder.

function gravatar_favicon() {
        $GetTheHash = md5(strtolower(trim(get_bloginfo('admin_email'))));
        return 'http://www.gravatar.com/avatar/' . $GetTheHash . '?s=16';
function favicon() {
        echo '<link rel="Shortcut Icon" type="image/x-icon" href="'.gravatar_favicon().'" />';
add_action('wp_head', 'favicon');

Related posts:

Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us