In today’s tutorial, we’ll learn how to customize our WordPress login page by adding custom message on WordPress login page. This is an example of our default login page:
The default login page looks very plain. Let’s add some useful text to our login page. To add or edit a custom message to our login page, we can use login_message
filter. The filter can return an HTML output. Here’s an example of the complete snippet that can be copied:
Here’s the result of what you’ll see on your login page:
I suggest you to put the code inside your site functionality plugin, not on your theme’s functions.php file since this is not a theme-specific feature. By placing the code in your functionality plugin, the custom message won’t be removed when you change your theme in future.
In future, we hope to cover more tutorial on customizing your login page. Previously, we’ve also published a tutorial on adding a popup registration form to your WordPress site. For more WordPress tutorials, feel free to subscribe to our RSS feed. You won’t be disappointed.
Leave a Reply