WordPress has a simple feature to password protect posts with a simple password rather than a login. This form of password protection is not as secure as login protection, but it can be good for hiding non-sensitive internal documents, membership-only content created on a different platform, sharing coupons, etc.
So long as we’re saying, “This stuff isn’t actually all that important anyway,” why not remove those secretive password dots and just let people see what they type? Sure, it’s less secure – we’ve already made the decision that this stuff is less secure – but it’s also more user-friendly to display the password.
So today I wrote a simple jquery function to switch the password protected field’s type from “password” to “text”:
$("input[type='password'][name='post_password']").get(0).type = 'text';
You’ll need to load that in your theme’s header.php, footer.php, or a functional plugin, of course.
Is this helpful?
More posts from themightymo.com
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.
I wasted some time today to bring you (dum dum duuuuum!): Some Surprising Trends in Website Development!
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…