You know the WordPress logo appears on the default login page.
Is there any way to change or remove the logo? Using the Google element inspector, the logo disappears when applying the following CSS code:
#logo h1 { display: none; }
However, this CSS code snippet does not work in the actual environment. Please use the following steps to change or remove the WordPress logo from login page or register page:
- Create your own logo in PNG format and save it as "site-login-logo.png."
- Copy your logo to the folder "…/images/" using an ftp client.
- Add the following function to the file "functions.php."
function my_login_logo() { ?> <style type="text/css"> body.login div#login h1 a { background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/site-login-logo.png); padding-bottom: 30px; } </style> <?php } add_action( 'login_enqueue_scripts', 'my_login_logo' );
Now you should see the new logo in your login or register page.
You will know how to remove the logo. You can just add "display:none;"
Added:
- The quote marks should be straight quote marks. If the above function does not work, please change all quote marks to straight ones.
- The images folder should be created under your theme folder.