Otar
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Removing Line of Password Protected Default TextRejesh
I thank you for responding so quickly.
I copied the code from the link you kindly supplied to me yesterday and pasted it into the functions.php file for my WordPress Theme (See below:)
<?php
function my_password_form() {
global $post;
$label = ‘pwbox-‘.( empty( $post->ID ) ? rand() : $post->ID );
$o = ‘<form action=”‘ . esc_url( site_url( ‘wp-login.php?action=postpass’, ‘login_post’ ) ) . ‘” method=”post”>
‘ . __( “To view this protected post, enter the password below:” ) . ‘
<label for=”‘ . $label . ‘”>’ . __( “Password:” ) . ‘ </label><input name=”post_password” id=”‘ . $label . ‘” type=”password” size=”20″ maxlength=”20″ /><input type=”submit” name=”Submit” value=”‘ . esc_attr__( “Submit” ) . ‘” />
</form>
‘;
return $o;
}
add_filter( ‘the_password_form’, ‘my_password_form’ );
?>Unfortunately, unless I am doing something incorrectly, it did not work. In fact it made my site disappear (which reinforces my belief that I did indeed do something wrong). Once I cut it back out of the code my site reappeared.
Any other suggestions…anyone?
I’m still looking to remove the second default text line from my password field page.
Forum: Fixing WordPress
In reply to: Removing Line of Password Protected Default TextI saw this. I thought it was for customizing the line of text that gets displayed, not deleting the second line. But I’m willing to give it a try.