How to add custom text to WordPress login page

If you want to replace and show your own message or text to WordPress login page here is a good code, just copy and paste it on your functions.php and edit the “message” part of code to your own text.

 
<?php
 
 
function custom_login_msg( $message ) {
    if ( empty($message) ){
        return "<p class='message'>Hi Edit this line and place your custom Message here</p>";
    } else {
        return $message;
    }
}
add_filter( 'login_message', 'custom_login_msg' );
 
 
?>

Related posts:

HTML5 page structure

HTML5 offers more powerful structure comparing to older versions of Html. There are many new …


Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us