To customize WordPress-powered password-protected posts, follow these simple steps.
template-functions-post.php and find the function
get_the_password_form(), which is located near the top of the page.
There are several aspects of this function that you may wish to customize. For example, the Perishable Press website requires several CSS attributes for stylistic control. Thus we simply added the class
postpassword to the form input field, as well as the class
passwordsubmit to the form submit button. This enabled full stylistic control over password-protected posts. You may also wish to modify the size of the input text field, or even edit the submit-button text.
Finally, remember to check both the post comment view for proper “password message” display. If it is not, edit the local
comments.php file (usually near the top) until the message displays correctly.