How To Restrict Access To Partial Content In Divi
Conditionally restrict access to specific sections of your page using the Divi Visual Builder. Designed with 100% live builder compatibility, the Divi Content Restrictor plugin applies visibility rules directly to Divi Sections (Regular, Fullwidth, and Specialty).
Restricting content within the Divi Visual Builder is fast, flexible, and completely visual.
Key benefits of partial content restriction include:
- Displaying premium content exclusively to logged-in users.
- Tailoring personalized content based on membership levels or user roles.
- Protecting paid digital assets and member-only resources.
- Preventing search engine bots from indexing private section content.
- Driving lead generation by unlocking content in exchange for user email signups.
You can restrict access by login status and user roles natively—without requiring external plugin dependencies.
Seamless third-party membership plugin integrations:
Follow the step-by-step guides below to restrict section content:
- For Logged-In Users
- For Any Selected User Roles
- For All Selected User Roles
- Using Custom WordPress Filters
- Using WooCommerce Memberships
- Using MemberPress
- Using Restrict Content Pro
Pre-Requisites
Section titled “Pre-Requisites”- A WordPress Website
- Divi Theme
- Divi Content Restrictor Plugin
Restrict Content - Logged-In Users
Section titled “Restrict Content - Logged-In Users”-
Grant access exclusively to logged-in WordPress users while displaying a custom unauthorized notice to guests:
- Open your page in the Divi Visual Builder.
- Click the Gear (⚙) icon to open settings for your target Divi Section.
- Go to the Advanced tab.
- Expand the Restrict Content section toggle.
- Switch Restrict Content to ON.
- In the Grant Access To drop-down, select Logged In User.
- Customize your notice message under Set & Style Un-Authorized Text (see instructions below).
FREE DOWNLOAD
Start your FREE trial. No credit card required.
Restrict Content - Any Selected User Roles
Section titled “Restrict Content - Any Selected User Roles”-
Grant access to users who hold any of the selected WordPress user roles (e.g. Administrator OR Subscriber):
- Open your page in the Divi Visual Builder.
- Open Section Settings > Advanced > Restrict Content.
- Switch Restrict Content to ON.
- In Grant Access To, select User Roles - Any Selected.
- In the Roles multi-select field, select one or more user roles.
- Customize your notice message under Set & Style Un-Authorized Text.
FREE DOWNLOAD
Start your FREE trial. No credit card required.
Restrict Content - All Selected User Roles
Section titled “Restrict Content - All Selected User Roles”-
Grant access exclusively to users who hold all of the selected user roles simultaneously:
- Open your page in the Divi Visual Builder.
- Open Section Settings > Advanced > Restrict Content.
- Switch Restrict Content to ON.
- In Grant Access To, select User Roles - All Selected.
- Select your required roles in the Roles multi-select field.
- Customize your notice message under Set & Style Un-Authorized Text.
FREE DOWNLOAD
Start your FREE trial. No credit card required.
Restrict Content - Custom WordPress Filter
Section titled “Restrict Content - Custom WordPress Filter”-
Use custom WordPress Filter Hooks to evaluate complex business logic or dynamic access conditions:
- Open your page in the Divi Visual Builder.
- Open Section Settings > Advanced > Restrict Content.
- Switch Restrict Content to ON.
- In Grant Access To, select Custom WordPress Filter.
- Enter your unique filter identifier in the Custom Filter Name field.
- Add your PHP filter callback function in your theme’s
functions.phpor child theme. (Review code examples in this GitHub Gist).- The filter callback receives three parameters:
$original_content: Raw HTML/shortcode content of the protected Divi section.$address: Integer index of the section module inside the Divi layout.$props: Array of Divi section attributes and settings.
- The filter callback receives three parameters:
- Note: Custom PHP filters generate their own conditional content or notices directly via code.
FREE DOWNLOAD
Start your FREE trial. No credit card required.
Restrict Content - WooCommerce Memberships
Section titled “Restrict Content - WooCommerce Memberships”-
Restrict Divi section visibility based on active WooCommerce Memberships plans:
- Open your page in the Divi Visual Builder.
- Open Section Settings > Advanced > Restrict Content.
- Switch Restrict Content to ON.
- In Grant Access To, select WooCommerce Memberships.
- Select target plans in the Woo Membership Plans multi-select field.
- Drip Content Delay: Optional field to delay access (e.g.,
3 days,2 weeks, or explicit dates like2026-01-01). - Start After Trial: Toggle ON to delay access until a member’s trial period concludes.
- Customize your notice message under Set & Style Un-Authorized Text.
FREE DOWNLOAD
Start your FREE trial. No credit card required.
Restrict Content - MemberPress
Section titled “Restrict Content - MemberPress”-
Restrict section content using MemberPress rules or membership levels:
- Open your page in the Divi Visual Builder.
- Open Section Settings > Advanced > Restrict Content.
- Switch Restrict Content to ON.
- In Grant Access To, select MemberPress.
- Under Restrict By, choose Rules or Memberships:
- Select Rules to restrict access based on defined MemberPress access rules.
- Select Memberships to restrict access based on specific MemberPress plans.
- If Allowed: Choose Show to render content for authorized members, or Hide to invert visibility.
- UnAuth Behavior: Choose Message (custom notice), Login (inline login form), or Both.
- Customize your notice message under Set & Style Un-Authorized Text.
FREE DOWNLOAD
Start your FREE trial. No credit card required.
Restrict Content - Restrict Content Pro
Section titled “Restrict Content - Restrict Content Pro”-
Restrict section content using Restrict Content Pro membership levels:
- Open your page in the Divi Visual Builder.
- Open Section Settings > Advanced > Restrict Content.
- Switch Restrict Content to ON.
- In Grant Access To, select Restrict Content Pro.
- Is Visible To Paid Users?: Set to Yes to restrict access to active paid subscribers.
- Select target Memberships, Subscriptions, or User Levels in the respective multi-select fields.
- Customize your notice message under Set & Style Un-Authorized Text.
FREE DOWNLOAD
Start your FREE trial. No credit card required.
Set & Style Un-Authorized Text
Section titled “Set & Style Un-Authorized Text”-
Customize the notice banner displayed to unauthorized visitors when section content is hidden:
- Open your page in the Divi Visual Builder.
- Open Section Settings > Advanced > Restrict Content and ensure Restrict Content is toggled ON.
- Expand the Un-Authorized Text toggle.
- Enter your message in the Text Message box.
- Customize notice appearance:
- Typography: Font family, font weight, font style, text alignment, and font color.
- Container Styling: Background color, borders, rounded corners, padding, margin, and box shadows.
FREE DOWNLOAD
Start your FREE trial. No credit card required.