Adding a custom message in WordPress login page make your site more interactive to your visitors.

We have learned to customize our WordPress Login/Registration page. Now we can change WordPress default logo with our own logo and add a nice background instead of WordPress default background. In this tutorial, we’ll learn how to customize our WordPress login page by adding custom  text or message on WordPress login page.

How to add custom message or text to WordPress login page

To add a custom message on WordPress login page, we can use login_message filter.
The filter “login message” is used to filter the message displayed on the WordPress login page above the login form. This filter is used to return HTML markup.

Copy the below code and paste it into your theme’s functions.php file to add a custom message on WordPress login page.

//* Add custom message to WordPress login page

function smallenvelop_login_message( $message ) {
    if ( empty($message) ){
        return "<p><strong>Welcome to SmallEnvelop. Please login to continue</strong></p>";
    } else {
        return $message;

add_filter( 'login_message', 'smallenvelop_login_message' );

Here you can see how it looks after adding the code. The text appears just below the logo. You can add some HTML and some CSS to style the text.
Custom wordpress login page message

Like the WordPress default login page, you can also customize your WordPress admin dashboard. We’ve some more tutorial on creating a stunning admin dashboard. Check it out here.

You can also use free WordPress plugins to customize your login page. These plugins can be found free on WordPress plugin repository. Here I have listed some of the free plugins you can use for your WordPress sites.