Having the same problem since testing 5.1 on our dev sites. Using a child theme to get custom login css and even title attributes for the image.
This is the code in our Child Theme’s functions.php file that no longer works as of 5.1. Doesn’t throw any errors either.
<?php
function my_login_logo() {
wp_enqueue_style( 'login-custom-style', get_stylesheet_directory_uri(). '/login_style.css', array('login') );
}
add_action( 'login_enqueue_scripts', 'my_login_logo' );
function my_loginURL() {
return 'https://www.mysite.com';
}
add_filter('login_headerurl', 'my_loginURL');
function my_loginURLtext() {
return 'Built by MyCompany, Inc.';
}
add_filter('login_headertitle', 'my_loginURLtext');
?>
-
This reply was modified 7 years, 5 months ago by aeeiee.