Tags

, ,

Add this code in function file

To Change URL

function my_login_logo_url() {
    $siteurl = get_bloginfo('url');
    return $siteurl;
}
add_filter( 'login_headerurl', 'my_login_logo_url' );

 

To Change Title

function my_login_logo_url_title() {
    $sitetitle = get_bloginfo('name');
    return $sitetitle;
}
add_filter( 'login_headertitle', 'my_login_logo_url_title' );

 

To Change Logo Image

function my_login_stylesheet() {
     wp_enqueue_style( 'custom-login', get_template_directory_uri() . '/style-login.css' );   
}
add_action( 'login_enqueue_scripts', 'my_login_stylesheet' );

 

Then add style-login.css file & logo on root

body{ background:url(backgroundrep.jpg) repeat top; }
.login h1 a{ background:url(logo.png) no-repeat 0 0; }
Advertisements