Documentation Tips & Tricks Gravatars and Blavatars

Gravatars and Blavatars

Overview #

↑ Top ↑

Gravatars #

A Gravatar is a Globably Recognized Avatar (and Profile), a service by Automattic that allows any person to assign an image to an email address. makes extensive use of Gravatars whenever possible, and we recommend using them in your theme and assigning a Gravatar to every author.

For user profiles and Gravatar management instructions, please visit the Gravatar and Public Profile pages on the support site.

To learn how to implement Gravatars in your site theme, please visit Using Gravatars in the codex.

Tip: If you are not seeing avatars on your site, check to make sure Avatar Display is enabled in Settings -> Discussion.

↑ Top ↑

Blavatars #

Blavatars are site icons which are automatically used on as the site favicon, iPhone home screen icon, etc.
You can set your site Blavatar under Settings -> General in the site dashboard.

Note: If your theme already contains a reference to an icon in the header.php file, the blavatar will be ignored.

You can also use the blavatar directly in your theme, with the following functions:

blavatar_exists( $domain )
get_blavatar( $url, $size = '96')


if ( blavatar_exists( blavatar_current_domain() ) )
    echo get_blavatar( blavatar_current_domain(), 128);

↑ Top ↑

Disabling #

If you are not using Gravatars and Blavatars and need to disable the loading of related Javascript and CSS resources, you can use wpcom_vip_disable_hovercards() in your theme.

You’ll also want to disable the default favicon redirect with remove_action( 'init', 'dynamic_favicon' );

You can disable the built-in site icon functionality by including the following in your functions.php file:

remove_action( 'init', 'dynamic_favicon' );
remove_action( 'wp_head', 'blavatar_add_meta' );
remove_action( 'admin_head', 'blavatar_add_meta' );

Documentation is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.