WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to remove password protected (7 posts)

  1. stormkicker
    Member
    Posted 10 months ago #

    For many hours to find a solution on "How to remove the "password protected" text from "BELOW" the password box on password protected pages. There are countless solutions and even a plugin to change the text "ABOVE" the password box but there seems to be nothing that supports the removal of "This post is password protected. Enter the password to view any comments". Any advice on this would be greatly appreciated.

  2. markhem
    Member
    Posted 10 months ago #

    Are you asking how to take off the protection from the single post, or keep the protection but remove the words on the screen? Did you accidentally protect it, or do you want it to be protected, but not say its protected?

  3. stormkicker
    Member
    Posted 10 months ago #

    I would like to keep the protection but remove the words on the screen from below the password box on a password protected page. I have already changed these words "This post is password protected. To view it please enter your password below" above the box using a plugin but can find nothing to remove these words "This post is password protected. Enter the password to view any comments" that appear on the screen below the box.

    Thanks

  4. stormkicker
    Member
    Posted 10 months ago #

    Thanks markhem I have just found a solution through the comments.php

    Thanks for the reply all the same!

  5. markhem
    Member
    Posted 10 months ago #

    Sorry, can't help on that one. Good luck.

  6. markhem
    Member
    Posted 10 months ago #

    stormkicker - Would you consider sharing your solution? Others may have need of the info too. I, for one, am curious. Thanks.

  7. stormkicker
    Member
    Posted 10 months ago #

    Of course, I found an article at the link below. I located and edited the text from within the comments.php for my theme by clicking Editor under the Appearance tab in the Dashboard. The code will look like this....

    <div id="comments">
    <?php if ( post_password_required() ) : ?>
    <p class="nopassword"><?php _e( 'If you have any problems during login, please contact us.', 'sp' ); ?></p>
    </div><!-- #comments -->
    <?php

    http://mysitemyway.com/support/topic/password-protected-page-displays-unwanted-text

    Thanks and good luck!

Reply

You must log in to post.

About this Topic

Tags

No tags yet.