• Resolved akestepa

    (@akestepa)


    Sorry about the title. I wasn’t quite sure how to word it.

    How do I customize the password protected posts to look like this instead of having it say the usual “This post is password protected. To view it please enter your password below:” ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • template-functions-post.php
    Open that and it’s at the very top to change the text.
    For that though you’d need to customise single.php to check if a post is protected and if so, throw up the special screen.

    I believe you will need to find the text (string) “This post is password protected. To view it please enter your password below:” in one of the functions of your WordPress installation and change it. I don’t know which file contains it, but let me run a scanner.

    […]

    roy@BAINE:~/wordpress> fgrep “This post is password” *
    roy@BAINE:~/wordpress> fgrep -R “This post is password” *
    wp-content/themes/default/comments.php: <p class=”nocomments”>This post is password protected. Enter the password to view comments.
    wp-includes/template-functions-post.php: ‘ . __(“This post is password protected. To view it please enter your password below:”) . ‘

    So there, go to these files and modify them. Hope this helps.

    Thread Starter akestepa

    (@akestepa)

    Ok, I think I got it. Thanks to both of you!

    Hey… tryin to change my login tesst also, but im using the danish text file, and cant se where to change it in that one….

    Anyone ?

    // Kim

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

The topic ‘Changing the text in a password protected post?’ is closed to new replies.