Skip to main content

Protect Section settings

Where to edit​

  1. Go to Divi Engine → Protect Sections and open a section.
  2. Use Protect Section Settings.
  3. Choose Password, Cookie, General, or Style.
  4. Click Open full window when you want the settings in a larger view.
  5. Save the section.

For a strong password, you can use the Divi Engine password generator.

Password​

Password tab

SettingWhat it does
PasswordThe password for this section.
Extra PasswordsOptional extra passwords, separated by commas. Example: password2,password3.
Unique ShortcodeA name without square brackets. Letters, numbers, dashes, and underscores only. Used on the front end and as the cookie name.

Place that name in brackets inside a Code module when you are not using the Divi Protect module. Example: [members_area].

Cookie tab

SettingWhat it does
Cookie Duration (Days)Days to remember a successful password. Set to 0 to turn off day-based cookies.
Cookie Duration (Minutes units)Leave 0 to use days. Each unit is 30 minutes. For example, 4 is 2 hours.

Cookies may not be stored when the browser or a privacy tool blocks them. The visitor will see the password form again on the next visit.

General​

General tab

SettingWhat it does
Simple Content BeforeText or HTML shown before the password form.
Complex Content BeforeA Divi Library layout shown before the password form.
Complex Content AfterA Divi Library layout shown after a successful unlock.
Button TextSubmit button label. The default is Submit.
Input Label TextLabel above the password field.
Input Placeholder TextPlaceholder inside the password field.
Logged-in Users BypassLogged-in visitors see the protected content without a password.
Unlock for these rolesLeave empty to keep the logged-in setting above. Choose roles when only those roles should skip the password.
Redirect URLOptional address to open after a successful password.
Error MessageMessage shown when the password is incorrect.
Scroll to SectionAfter unlock, the page scrolls to this protected section.

Complex Content Before and Complex Content After use layouts from the Divi Library. Build the layout in the library, then select it here. On Divi 5, those layouts keep their module styles, colours, icons, links, and interactions when they appear with the Protect Section.

Style​

Style tab

These styles apply to the password form from the Protect Section, including when the section is placed with its shortcode.

SettingWhat it does
Form Field Background ColorBackground of the password input.
Form Field Font SizeFont size of the password input.
Form Field Text ColorText colour of the password input.
Form Field Letter SpacingLetter spacing of the password input.
Form Field Line HeightLine height of the password input.
Form Input Border RadiusCorner radius of the password input.
Use Custom BorderTurns on border colour, width, and style for the input.
Border ColorBorder colour. Shown when Use Custom Border is on.
Border WidthBorder width. Shown when Use Custom Border is on.
Border StyleCSS border style, such as solid or dashed. Shown when Use Custom Border is on.
Use Custom Button StyleTurns on custom styles for the submit button.
Button Text SizeFont size of the submit button.
Button Text ColorText colour of the submit button.
Button Background ColorBackground of the submit button.
Button Border WidthBorder width of the submit button.
Button Border ColorBorder colour of the submit button.
Button Border RadiusCorner radius of the submit button.

Button text size, colours, and border fields appear when Use Custom Button Style is on.

When the section is placed with the Divi Protect module, you can also style the title, field, error, and button from the module Design tab. See Divi Protect on Divi 5.

Membership plan​

When Divi Membership is active, the Protect Section edit screen includes a Membership plan box.

Members of the selected plan can view the section without entering the password. Choose No plan when membership should not unlock this section.

What's next​