Return to Snippet

Revision: 56054
at March 7, 2012 14:54 by shufflepath


Initial Code
function my_custom_login_logo() {
    echo '<style type="text/css">
        h1 a { background-image:url('.get_bloginfo('template_url').'/images/login_page_logo.png) !important; }
    </style>';
}

add_action('login_head', 'my_custom_login_logo');


To change the WordPress Admin area logo (the one which located in the top left side of your Admin panel) then simply add following code to your theme’s functions.php file. Again, Don’t forget to change the logo location in line 3.

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

add_action('admin_head', 'custom_logo');

Initial URL


Initial Description


Initial Title
Change WordPress admin and login page logo

Initial Tags
php, wordpress

Initial Language
PHP