wordpress snippets last updated   : October 6, 2014
we now have 641 snippets

Gravatar hovercards

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will enable a fairly unknown wordpress feature called gravatar hovercards. I have no idea how if this will work for everyone, when I tried it on a new install of wordpress it works great. For more details visit the WordPress blog.

snippet :  PHPcopy
function gravatar_hovercards() {
	wp_enqueue_script( 'gprofiles', 'http://s.gravatar.com/js/gprofiles.js', array( 'jquery' ), 'e', true );
}
add_action('wp_enqueue_scripts','gravatar_hovercards');
source →

Did you like this post? If so please share it with your friends. Thanks!