Changing Logo on WordPress Login Page

0
106

Changing Logo on WordPress Login Page

Add this code in your Theme Functions (functions.php) file

function my_login_logo() { ?>
    <style type="text/css">
        #login h1 a, .login h1 a {
            background-image: url('https://makemysite.ie/wp-content/uploads/2018/02/cropped-Logomakr_1CcdQy.png');
       
        background-repeat: no-repeat;
            padding-bottom: 30px;
        }
    </style>
<?php }
add_action( 'login_enqueue_scripts', 'my_login_logo' );
   
    function my_login_logo_url() {
    return home_url();
}
add_filter( 'login_headerurl', 'my_login_logo_url' );

function my_login_logo_url_title() {
    return 'MMS Web Design';
}
add_filter( 'login_headertitle', 'my_login_logo_url_title' );

 

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here