Posted By

scottnix on 11/05/11


wordpress favicon Gravatar thematic

Versions (?)

Gravatar Image as WordPress Favicon

 / Published in: PHP


Saw this on forest and modified it to all be included in the functions.php instead of the actual template. Tumblr Style.

  1. // add gravatar favicon to site, 16x16 favicon.ico
  2. function snix_add_favicon() {
  3. $GetTheHash = md5(strtolower(trim('[email protected]')));
  4. ?><link rel="shortcut icon" href="<?php echo '' . $GetTheHash . '?s=16;'; ?>" /><?php
  5. }
  6. add_action('wp_head', 'snix_add_favicon');

Report this snippet  

You need to login to post a comment.