With a simple function in you functions.php file you can use your own stylesheet on the admin login page of wordpress. Interesting when a client wants a bespoke branded wordpress site. Just copy this function in your functions.php:
function my_wp_admin_login_css() {
echo ‘<link rel="stylesheet" href="yoursiteurl/wp-content/themes/themename/admin.css" type="text/css" />’;
}
echo ‘<link rel="stylesheet" href="yoursiteurl/wp-content/themes/themename/admin.css" type="text/css" />’;
}
add_action(‘login_head’, ‘my_wp_admin_login_css’);
Very simple, the function just echo a line in the head to include your css. Then create an admin.css file in your template file and set up the styles you want. Here is mine, just changed the logo to mine:

Straight forward isn’t it? Next for the most adventurous is how to change the style of the admin panel, including html changes and all the stuff.











Comments