/**

* Replaces the login header logo

*/

add_action( ‘login_head’, ‘namespace_login_style’ );

function namespace_login_style() {

echo ‘<style>.login h1 a { background-image: url( ‘ . get_template_directory_uri() . ‘/images/logo.png ) !important; }</style>’;

}

 

/**

* Replaces the login header logo URL

*

* @param $url

*/

add_filter( ‘login_headerurl’, ‘namespace_login_headerurl’ );

function namespace_login_headerurl( $url ) {

$url = home_url( ‘/’ );

return $url;

}

 

 

Leave a Reply