Hi, for those who need to change the logo and add a message above the login form, here is the snippet:
<?php
function custom_login_page() {
?>
<style type="text/css">
body.login div#login h1 a {
background-image: url(https://path-to-image.com/logo.png);
}
body.login p {
text-align: center;
}
</style>
<?php
}
add_action( 'login_enqueue_scripts', 'custom_login_page' );
function add_message() {
echo '<p>Hello World!</p>';
}
add_action( 'password_protected_login_message', 'add_message' );
?>
You can add this to your function.php child theme.
How to create a child theme?