Custom Admin Logo for WordPress 3.3.1 and newer

I found an article today with a bunch of tips for customizing WordPress, and tried to implement one to change the logo at the top left corner of the admin screen. There is normally a WordPress logo there. However, the code didn’t work. After poking around a bit, it became apparent that I must be using an out of date technique. After some further searching I foundĀ

Here is what it looks like:

function my_custom_logo() {
echo '<style type="text/css">
#wp-admin-bar-wp-logo > .ab-item .ab-icon { 
	background-image: url(path to image) !important; 
	background-position: 0 0;
#wpadminbar #wp-admin-bar-wp-logo.hover > .ab-item .ab-icon {
	background-position: 0 0;

//hook into the administrative header output
add_action('admin_head', 'my_custom_logo');

Thanks to Paul for providing updated code for the original solution found on

Leave a Reply

Your email address will not be published. Required fields are marked *