This snippet allows you to change the logo you see when you log in to your WordPress site (http://website.com/wp-admin).
Instructions:
Add this snippet to the functions.php file of your active theme.
<?php
function custom_login_logo() {
echo '<style type="text/css">h1 a { background-image:url('.get_bloginfo('template_directory').'/images/my-custom-login-logo.png) !important; }</style>';
}
add_action('login_head', 'custom_login_logo');
?>
*Add your “my-custom-login-logo.png” (or any filetype really) to the “image” folder in your current active theme folder.
Comments