Title: Otar's Replies | WordPress.org

---

# Otar

  [  ](https://wordpress.org/support/users/otar/)

 *   [Profile](https://wordpress.org/support/users/otar/)
 *   [Topics Started](https://wordpress.org/support/users/otar/topics/)
 *   [Replies Created](https://wordpress.org/support/users/otar/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/otar/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/otar/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/otar/engagements/)
 *   [Favorites](https://wordpress.org/support/users/otar/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Removing Line of Password Protected Default Text](https://wordpress.org/support/topic/removing-line-of-password-protected-default-text/)
 *  Thread Starter [Otar](https://wordpress.org/support/users/otar/)
 * (@otar)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/removing-line-of-password-protected-default-text/#post-5960790)
 * Rejesh
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Removing Line of Password Protected Default Text](https://wordpress.org/support/topic/removing-line-of-password-protected-default-text/)
 *  Thread Starter [Otar](https://wordpress.org/support/users/otar/)
 * (@otar)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/removing-line-of-password-protected-default-text/#post-5960563)
 * I 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.

Viewing 2 replies - 1 through 2 (of 2 total)