Okay,
So I have created a new .php file inside of my child-theme folder that also contains my style.css.
I pasted this inside of it.
<?php
// Amend post password form
function mytheme_password_form() {
global $post;
$label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID);
$output = '<div class="password-form">
<p class="protected-text">' . __('This post is password protected. To view it, please enter your password below:', 'mytheme') . '</p>
<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" method="post">
<p><label for="' . $label . '">' . __('S.L.E Code:', 'mytheme') . ' </label> <input name="post_password" id="' . $label . '" type="password" size="20" /> <input type="submit" name="Submit" value="' . esc_attr__('Submit', 'mytheme') . '" /></p></form></div>';
return $output;
}
add_filter('the_password_form','mytheme_password_form');
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
then just click save changes. Is this right?