How To Unset Login Screen Logo In WordPress 3.9+ Versions?

We have posted various tutorials on customizing WordPress login screens (take a look over to related tutorials showing up after this posts). In this tutorial we will show you how you can simply unset the login screen logo without customizing or changing anything out. You can so so either by activating Hide Login Logo plugin or alternatively you may add the following code in your theme’s function.php file and that’s it.

Hide Login Logo

Simply add the following code in your theme’s function.php file:

function hide_login_logo_load_textdomain()
    {
        load_plugin_textdomain( 'hide_login_logo', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' ); 
    }
    
    add_action( 'plugins_loaded', 'hide_login_logo_load_textdomain' );

    function hide_login_logo_login_head()
    {
        echo '<style>
            
                #login h1
                {
                    display: none;
                }
            
            </style>';
    }
    
    add_action( 'login_head', 'hide_login_logo_login_head' );

The above given code as well as the plugin does the same thing. They simply hides you login screen logo and displays only login form and button.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.