0
Welcome Guest! Login
0 items Join Now

Rt-Dominion Customize the Protected Text

  • Rt-Dominion Customize the Protected Text

    Posted 12 years 8 hours ago
    • I know the code I am looking for, but I can't find it anywhere, database or other, I have done multiple searches to change the following text, little to no avail!
      <form action="http://www.website,com/wp-pass.php" method="post">
      <p>This post is password protected. To view it please enter your password below:</p>
      <p><label for="pwbox-1922">Password:<br>
      <input name="post_password" id="pwbox-1922" size="20" type="password"></label><br>
      <input name="Submit" value="Submit" type="submit"></p></form>


      <?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" /><input type="submit" name="Submit" value="' . esc_attr__( "Submit" ) . '" />
      </form>
      ';
      return $o;
      }
      add_filter( 'the_password_form', 'my_password_form' );

      I want to change the "To view this protected post, enter the password below" Where can I find this? It is not in functions.php...Please help thank you!
  • Re: Rt-Dominion Customize the Protected Text

    Posted 11 years 11 months ago
    • Hello,

      Have you tried unzipping the template folder and moving the extracted folder to NotePad++ or TextWrangler? You should be able to search the entire folder for that text if it's in one of our templates.
    • Kind regards,
      Reggie

      Learn to code for free.
      www.freecodecamp.org
  • Re: Rt-Dominion Customize the Protected Text

    Posted 11 years 11 months ago
    • You know Reggie I have looked up and down in all folders and nothing...so obviously the remainder is in the DB, especially the "pwbox". However I have so many damn plugins that I am not even going to go sift through that either...unless someone knows exactly where this is....I am finished with it! :cheesy: Thank you for your prompt reply and suggestion, but it's not there!
      I thought it would be a standardized format in the basic WordPress functions, because of the Universal nature of password protecting posting, and according to WordPress it's in my theme and well WordPress is wrong with your configuration, and I am wrong with WordPress. So I give up I don't know!
  • Re: Rt-Dominion Customize the Protected Text

    Posted 11 years 11 months ago
  • Re: Rt-Dominion Customize the Protected Text

    Posted 11 years 11 months ago
    • Yeah that was the first thing I did, followed their instructions!!!! Then came here after it didn't work!
  • Re: Rt-Dominion Customize the Protected Text

    Posted 11 years 11 months ago
    • Hello,

      You had asked:
      Where can I find this?

      The code cannot be found. According to that link, it actually needs to be added to the functions.php file to be changed.
    • Kind regards,
      Reggie

      Learn to code for free.
      www.freecodecamp.org

Time to create page: 0.055 seconds