I needed to add a simple message to the WordPress login screen today. I wanted to add it just below the WordPress logo.
Here is my final result:

Here is the final result of my efforts
While digging around in wp-login.php, I noticed that there is a filter for “message”. So, I simply added an “add_filter” function to functions.php as follows:
add_filter ( 'login_message', 'add_login_message' );
function add_login_message () {
echo '<div>MY MESSAGE HERE</div>';
}
That’s it! Based on the above, it seems like it would be pretty easy to create a plugin that does this. Heck, I wouldn’t doubt if that plugin already exists.
Revisions
- September 2, 2015 @ 14:26:22 [Current Revision] by PeterLugg
- September 2, 2015 @ 14:26:22 by PeterLugg
Revision Differences
There are no differences between the September 2, 2015 @ 14:26:22 revision and the current revision. (Maybe only post meta information was changed.)
No comments yet.