This snippet allows you to change the logo you see when you login to WordPress(http://website.com/wp-admin).
1 2 3 4 5 6 | 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'); |
Instructions:
- Add this snippet tothe functions.php file of your active theme (if you are using the WP-Snippet plugin – you can add this to the master function-snippets repository, and the function will be active no matter what theme you have active).
- Add your “my-custom-login-logo.png” (or any filetype really) to the “image” folder in your current active theme folder.
Comments
One Reply to “Change WordPress Login Logo”
Thx!