• WordPress will password-protect a page but it will not tell people how to get the password, which seems to me insane.

    I need to change the wording that appears on the page, to direct visitors to an application form. The nearest thing I have found – here: https://paulund.co.uk/change-the-password-protected-text-in-wordpress – which adds a filter that will result in the visitor emailing the administrator.

    In my site the protected area is restricted to residents of a small area. The device above won’t make that clear, and I’m liable to spend the rest of my life asking people where they live and telling them they don’t qualify. I’ve designed a perfectly good form that does that job, and I just need to get a message on the protected page to direct the appropriate people to it. Surely it must be possible.

    The only alternative will be to abandon passsword protection, which defeats much of the purpose of the site.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You could simply change the text in that code to say what you need to say, including a link to the form you’ve created.

    Thread Starter dingxiaohan

    (@dingxiaohan)

    Exactly. Unfortunately editing code is above my pay grade, and after months of asking around among IT professional friends I’ve yet to find anyone who claims to know how to do it. I’m hoping that there will be some instruction that says, in effect: ‘Find this string of words and replace it with this one.’ If so, and if somebody could give me the wording of the instruction code, into which I can insert my variables, I would be halfway there. The other half would come if someone could tell me exactly what to do with it then.

    I can be assumed to be capable of not editing the parent theme and basics like that.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It’s the “newpasswordtext” string. Maybe you should hire a developer for this. You already have the code. You need to either make a quick and dirty plugin or add it to your theme’s functions.php file.

    Thread Starter dingxiaohan

    (@dingxiaohan)

    Yes. I’ve had a developer working on it, in exquisite silence, for about a month now, which is why I came back to see if I could tackle it myself. My next step is fairly obvious. Thanks for your help.

    By the way, have you noticed how the Zeno’s Arrow principle applies to every damn project in life? Looking back, I’m amazed at how much I created in a month, starting with zero knowledge of WP. Only to come to a standstill at the very last step.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It’s the 80/20 rule.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘protected page: altering text’ is closed to new replies.