Strattic Supports Password-Protected Pages for its Headless WordPress Sites

December 28, 2020 - 2 minutes read

Have a page in your WordPress website that you don’t want the whole world to see? Maybe you just want to allow certain people to access it. The best way to do this is by password protecting the page, and WordPress lets you do that out of the box. However, due to the dynamic nature of this type of functionality and its dependence on communication with the WordPress database, password-protected pages don’t normally work on a statically generated version of a WordPress site .

At Strattic, our goal is to align the static version of WordPress sites as much as possible with the experience of using native WordPress, without our users having to do anything extra or develop new functionality. That’s why we have rolled out native support for static search, Gravity Forms, WPML, Yoast, and more.

And now we have support for WordPress’ password-protected pages!

When editing a page or a post in WordPress, you can choose to password-protect it from the editor. The process is very simple: turn on password protection, choose a password, publish your page, and Voila! You have a page that only users with the password can access.

Here are the steps to password protect this same page on the static version of the site on Strattic:

  1. Password protect your page as usual in WordPress.
  2. Click the Strattic publish button to deploy your changes to the static site.
  3. Just kidding, there’s no step 3 🙂

That’s it!

With this new feature, Strattic clients will enjoy yet another “dynamic” feature within their static, headless environment without compromising their site security. Enjoy!

 

Posted in: News
Tags: ,