How to Display Custom Message to WordPress Login Page

x theme
(Last Updated On: July 10, 2014)

Here we’re sharing an easy and quick WordPress tutorial to display custom message or text to your WordPress login page. Just you’ll have to put the following code in your theme’s functions.php.


Put whatever text you want on line 3.

function login_custom_text( $custom_text ) {
if ( empty($custom_text) ){
return "<p class='text'>Welcome to the login page. Be safe!</p>";
} else {
return $custom_text;
add_filter( 'login_message', 'login_custom_text' );

About the author


Leave a Reply

Your email address will not be published. Required fields are marked *