/ Published in: PHP
this is an easy function to add a gravitar to wordpress.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
add_filter( 'avatar_defaults', 'newgravatar' ); function newgravatar ($avatar_defaults) { $myavatar = get_bloginfo('template_directory') . '/images/buildinternet-gravatar.jpg'; $avatar_defaults[$myavatar] = "Build Internet"; return $avatar_defaults; }
URL: http://buildinternet.com/2009/02/how-to-change-the-default-gravatar-in-wordpress/