WP admin bar – How to hide WordPress icon and blavatars


At the left side of wp admin bar an wordpress icon “W” is shown.

When the user hover it, it lists some wordpress.org links.  Also in multisite installation a wordpress logo (called blavatar) is shown next to each blog name.
A simple way to hide those images is to add to your custom.php file the following:

// hide administration page header logo and blavatar
function remove_admin_logo() {
echo '<style>#wp-admin-bar-wp-logo{ display: none; }
img.blavatar { display: none;}
#wpadminbar .quicklinks li div.blavatar {display:none;}
</style>';

}
add_action('admin_head', 'remove_admin_logo');

About these ads

5 thoughts on “WP admin bar – How to hide WordPress icon and blavatars

  1. This does exactly what it says it will do, actually removes the blavatar. After a long time searching, this is the only things I have found that works.

  2. Hello Lenasterg.

    The final code into custom.php is:

    <?php
    // hide administration page header logo and blavatar
    function remove_admin_logo() {
    echo '#wp-admin-bar-wp-logo{ display: none; }
    img.blavatar { display: none;}
    #wpadminbar .quicklinks li div.blavatar {display:none;}';

    }
    add_action(‘admin_head’, ‘remove_admin_logo’);
    ?>

    Does not work. This is the unique code of the file I created my custom.php.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s