• I would like to know if it’s possible to show just the password-form for protected pages, like on the wp-login page.

    If you protect a page it only protects the content-element. The rest like header, footer, additional elements in the theme or stuff loaded by scripts are still visible. And sometimes you have some stuff outside the content you want to protect during testing where it has to be a live url.

    My workaround is to change the css so the form is 100% screen size, with background and on top of everything. So the normal user would think the page is just blank with a password-input in the middle.

    • This topic was modified 2 months, 2 weeks ago by pdjp.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @pdjp,

    Your approach to using CSS to cover the whole page with a password form is quite creative! Here are two solutions you might consider:

    1. CSS Workaround: Your current method of using CSS to make the password form cover the entire page is a valid workaround. This approach involves setting the form to take up 100% of the screen and placing it on top of other elements, which can effectively mask the content while requiring a password.
    2. Using RegistrationMagic: For a more integrated solution, you can use the RegistrationMagic plugin. It offers advanced user management and access control features, which can simplify password protection for your pages. Here’s how you can use it:
      • Install RegistrationMagic: Install and activate the RegistrationMagic plugin on your WordPress site.
      • Create a Registration Form: Use RegistrationMagic to create a registration or login form with a password field. Configure the form to be displayed only for users who are not logged in or do not have the necessary permissions.
      • Configure Form Settings: Set up the form to redirect users to the login page if they attempt to access protected content. This ensures that only authorized users can view the page.
      • Apply Form to Pages: Insert the form shortcode provided by RegistrationMagic into pages where you want to enforce password protection. Customize the appearance and behavior of the form through the plugin’s settings.

    Both methods can be effective depending on your needs. The CSS workaround is quick and straightforward, while RegistrationMagic offers a more robust and integrated solution.

    If you have any questions or need further assistance with either approach, feel free to reach out!

    Best Regards,
    Mohd Javed

    Do you know if you are using a Block Theme or a Classic Theme?

    Thread Starter pdjp

    (@pdjp)

    It’s a general question. But normally i use classic themes.

    Thread Starter pdjp

    (@pdjp)

    Hi @jawedrs,

    yes, a restriction for users that are not logged in would be a good alternative. ?? I tried the plugin Simple Page Access Restriction for just “logged in yes/no”-logic and that worked for me, because most pages i work on don’t have guest accounts.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.