Ready to get started?Download WordPress


Password Protected Entries (7 posts)

  1. Daisyhead
    Posted 10 years ago #

    Anyone know how I can change the text for password protect entries? Currently my permalink reads:

    Entry: Protected: (entry title) | Enter your password to view comments

    I would like to shorten the text up. You can see an example here.

  2. chuckg
    Posted 10 years ago #

    The relevant information you're looking for should be in your template-functions.php around line 850 or so, right in the Post Tags category. The function name is:
    Right in there you can edit up all the stuff you want to change ;)

  3. Daisyhead
    Posted 10 years ago #

    Thanks! I thought I had looked through all that code. Just got it changed. =)

  4. rdjuhar
    Posted 10 years ago #

    I opened my wp-includes/template-functions.php and edited the text for my password-protected entries. But when I uploaded it and tried to open my blog, I got this error message:
    Parse error: parse error, expecting ','' or ';'' in /home/silverto/public_html/solitude/ramblings/wp-includes/template-functions.php on line 370
    Fatal error: Call to undefined function: get_month_link() in /home/silverto/public_html/solitude/ramblings/wp-includes/template-functions.php on line 238
    Can someone help me? Thanks in advance :)

  5. chuckg
    Posted 10 years ago #

    You're going to have to show us what the line that's referring to looks like, I think, in order for us to help you out. Sounds like you're missing some quotation marks or a ; operator on the line above. Just show us the a few relevant lines :)

  6. rdjuhar
    Posted 10 years ago #

    I somehow fixed it. It just doesn't like it when I use any tags (like when I tried inserting my email address). I don't really get it, but it works fine now! :) Thanks for the help!

  7. Amy
    Posted 10 years ago #

    Cool! I did this too. Looks better somewhat.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.