Using Gravatar as Favicon

Supplemental 23 views
0 Flares 0 Flares ×

Use this snippet to use your Gravatar as a favicon on your site.

Step 1

Add this to your functions.php:

function so_GravatarAsFavicon() {
//We need to establish the hashed value of your email address
	$GetTheHash = md5(strtolower(trim(''))); // change to your own email address
	echo '' . $GetTheHash . '?s=16';

Step 2

Add to header.php, before closing tag:

<link rel="shortcut icon" href="<?php so_GravatarAsFavicon(); ?>" />

For Reference:

Gravatar as Favicon

Provided by: Piet Bos
Tagged with:
Posted in Wordpress


Leave a Reply

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


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

No Trackbacks.


Register | Lost your password?
0 Flares Twitter 0 Facebook 0 Google+ 0 0 Flares ×