Home / functions.php / Gravatar hovercards
  • How to Gravatar hovercards


    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.

    wordpress snippet : PHP

    function gravatar_hovercards() {
    	wp_enqueue_script( 'gprofiles', 'http://s.gravatar.com/js/gprofiles.js', array( 'jquery' ), 'e', true );

    ( WordPress codex functions, hooks, in this snippet. )

    query, add_action, _e, wp_enqueue_script, wp,