WordPress 3.3 has just been released, and it’s looking pretty cool. However, the new admin bar which displays at the top of the site when logged in now has an image of the WordPress logo, with a drop-down of links to the WordPress site.

Unfortunately, this can be quite distracting and confusing for some user, as it links them away from their site or dashboard if they accidentally click on it (The previous versions of WordPress had the users gravatar and linked to their profile page.)

While there isn’t any setting to remove it (yet), thankfully it is pretty easy to get rid of.

To do this, open your theme’s functions.php file, which should be found at /wp-content/themes/yourthemename/functions.php and add the following code.

function remove_wp_admin_link() {
remove_action('admin_bar_menu', 'wp_admin_bar_wp_menu');
add_action('init', 'remove_wp_admin_link');

WordPress adds ‘wp_admin_bar_wp_menu()’ to the ‘admin_bar_menu’ hook in the /wp-includes/class-wp-admin-bar.php file. Here we tell WordPress to remove this action during WordPress’s ‘init‘ phase (providing the user is logged in as that is the only time it is seen).

To make life easier I’ve also created a plugin which is currently available on github and will putting a copy into the WordPress Extend plugin directory soon.