Posted By

scottnix on 11/05/11


Tagged

wordpress favicon Gravatar thematic


Versions (?)

Gravatar Image as WordPress Favicon


 / Published in: PHP
 

URL: https://forrst.com/posts/Gravatar_as_favicon_in_Wordpress-PTW

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 'http://www.gravatar.com/avatar/' . $GetTheHash . '?s=16;'; ?>" /><?php
  5. }
  6. add_action('wp_head', 'snix_add_favicon');

Report this snippet  

You need to login to post a comment.