Setting up the Divi Password Box Module

Written by Dan Mossop

Setting up password protection on a page can help you control access to sensitive or private content in WordPress, allowing only authorized visitors to view certain sections. With the Divi Password Box module, you can replace the plain Divi password form with a fully configurable module. In this guide we show you how to configure and verify the Divi Password Box setup to ensure your content is reliably secured and displayed as intended.

Setting Up Divi Password Box Module

This method demonstrates how to configure the Divi Password Box module on a new WordPress page, including setting custom titles, prompts, and display options for protected content. It walks you through both setup and verification steps, ensuring your protected content appears only after successful password entry, while also confirming error handling for incorrect password attempts.

Secure Your Page with WordPress Password Protection

Before you add the Divi Password Box, you'll need to protect your page with WordPress's built-in password option. In the page editor, locate the visibility settings in the right sidebar and set the page to "Password protected." Enter a password of your choice so only users with this password can view the page.

Launch Divi Builder and Insert the Password Box Module

Once your page is secured, switch to the Divi Builder by clicking "Use Divi Builder." Add a new section for the password form and then insert a new single-column row. In the module list, search for "Password Box" and add it to your row.

Customize the Password Box Module Content

With the Password Box Settings panel open, start customizing the module to match your needs:

  • Enter a clear title for your protected area (e.g., "Restricted Area – Enter Password").
  • Add a helpful message for wrong passwords, like "Sorry, that password is incorrect."
  • Set the button text, such as "Submit Password."
  • Set custom styles, such as a background color.

Save Password Box Module Settings

Once your content and design settings are complete, click the green checkmark at the bottom of the settings panel to save your changes.

 Configure Section Visibility

To replace the default Divi password form with the section containing your password box, adjust your section's visibility settings as follows. Open the blue section settings, go to the "Advanced" tab, and expand the "Visibility" section. Set "Password Protection" to "Show before password entered."

Add Protected Content to be Shown After Password Entry

Now, add regular sections with the content you want to show after the password is entered. For example, a section with a text module containing the protected content.

Save and Exit the Divi Builder

After configuring your sections, save your layout in the Divi Builder by clicking the green "Save" button on the bottom control bar. Then, exit the Visual Builder to view your page as a visitor would see it.

Test Your Password Protection

Navigate to your newly protected page. You should see the password prompt you created, and your protected content will not be visible yet. Try entering an incorrect password to make sure your error message appears. Next, enter the correct password to confirm you gain access to the protected content.

Conclusion

With these steps, you can easily create a custom password-protected area in Divi, providing both security and a personalized experience for your visitors.

We may earn a commission when you visit links on our website.

Secure Your Content with Style!

Upgrade your password-protected pages with Divi Password Box! This module allows you to customize and enhance the password entry experience, ensuring your protected content looks fantastic and remains secure.

Latest Posts

Style the Divi Gallery Lightbox Close Button

Give your gallery lightbox a clear, on-brand close button by customizing its color and size. This improves visibility and usability against varying image backgrounds and ensures the button renders at full opacity for a consistent experience. In this guide we show you...

Add a Visible Shadow to Divi Gallery Lightbox Arrows

Give the lightbox navigation arrows in your Divi galleries a stylish pop and improve their visibility by adding a shadow beneath the arrows. This quick guide will show you how to make your navigation arrows stand out against the lightbox overlay.Add a Visible Shadow...

Adjust Lightbox Arrow Size in Divi Gallery

Customize the size of the navigation arrows that appear in your gallery lightbox so they’re easier to see and aligned with your site’s design. Whether you want larger, more accessible controls or a subtler look, setting a precise arrow size creates a more polished...

Change Lightbox Arrow Color in the Divi Gallery Module

Make the lightbox navigation arrows in your Divi Gallery match your brand and stand out against your images by assigning a custom color. This improves visual consistency, enhances accessibility with better contrast, and elevates the overall browsing experience for...

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.