Return to Snippet

Revision: 36212
at January 10, 2011 10:26 by rliverman


Updated Code
// 32px square
function custom_logo() {
  echo '<style type="text/css">
    #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/admin_logo.png) !important; }
    </style>';
}

add_action('admin_head', 'custom_logo');

// 325px by 70px should be about right
function custom_login_logo() {
  echo '<style type="text/css">
    h1 a { background-image:url('.get_bloginfo('template_directory').'/images/login_logo.png) !important; }
    </style>';
}

add_action('login_head', 'custom_login_logo');

Revision: 36211
at January 10, 2011 10:23 by rliverman


Updated Code
function custom_logo() {
  echo '<style type="text/css">
    #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/admin_logo.png) !important; }
    </style>';
}

add_action('admin_head', 'custom_logo');

// 325px by 70px should be about right
function custom_login_logo() {
  echo '<style type="text/css">
    h1 a { background-image:url('.get_bloginfo('template_directory').'/images/login_logo.png) !important; }
    </style>';
}

add_action('login_head', 'custom_login_logo');

Revision: 36210
at November 19, 2010 08:44 by rliverman


Initial Code
function custom_logo() {
  echo '<style type="text/css">
    #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/admin_logo.png) !important; }
    </style>';
}

add_action('admin_head', 'custom_logo');

function custom_login_logo() {
  echo '<style type="text/css">
    h1 a { background-image:url('.get_bloginfo('template_directory').'/images/login_logo.png) !important; }
    </style>';
}

add_action('login_head', 'custom_login_logo');

Initial URL


Initial Description
Add custom logo to the login and dashboard of wordpress.

More customization functions at:
http://sixrevisions.com/wordpress/how-to-customize-the-wordpress-admin-area/

Initial Title
Wordpress Custom Admin Logos

Initial Tags
wordpress

Initial Language
PHP