How to Add a Message to the WordPress Login Screen (below the logo)

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 '
MY MESSAGE HERE
'; }

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. 🙂

Have fun!

Posted in ,

The Mighty Mo! Design Co.

More posts from themightymo.com

How to merge two folders, including all sub-folders and files, on Mac

By The Mighty Mo! Design Co. | November 3, 2022

Today I had an issue where I needed to merge two folders, each of which contained many sub- and sub-sub folders that had lots of images. After a lot of trial-and-error and some Googling, I found the best solution is to use the “ditto” command in Terminal like this: That’s it! Hat tip to AppleInsider.

mailchimp usage stats

Some Surprising Trends in Website Development

By Toby Cryns | October 17, 2022

I wasted some time today to bring you (dum dum duuuuum!): Some Surprising Trends in Website Development!

How to Configure WordPress with Cloudflare, HSTS, TLS, and Secure Headers

By The Mighty Mo! Design Co. | October 11, 2022

I was recently asked to look into creating some secure http headers as well as forcing a website to load over TLS1.2+. Below are my “how to” instructions for updating these settings within WordPress and Cloudflare. Install & Configure the Cloudflare WordPress plugin. Make sure an SSL Certificate is installed on your host for your…