Home / functions.php / Gravatar hovercards
  • Gravatar hovercards

    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 );
    }
    add_action('wp_enqueue_scripts','gravatar_hovercards');
    

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

    query, add_action, _e, wp_enqueue_script, wp,

Build a better with wpsnipp.com

Weekly snippets, themes, deals coupons roundup.

x No Thanks