See this widget in action here.
Need to restrict access to certain content on your WordPress site? The Content Protection widget in aThemes Addons lets you protect any Elementor template by password or user role, with customizable messages for unauthorized visitors.
In this guide, we’ll walk you through how to use the Content Protection widget in aThemes Addons for Elementor.
Before you get started, make sure you’ve installed and activated the aThemes Addons plugin on your WordPress site along with Elementor. This widget requires aThemes Addons Pro.

Activating the Widget
Go to the aThemes Addons dashboard in your WordPress admin area and search for the Content Protection widget. Toggle the switch to activate it. Once activated, the widget is available in the Elementor editor.
Exploring Widget Options
Configuring General Settings
Configure the core protection settings:
- Protected Template – Choose the Elementor template you want to protect.
- Enable Content Protection – Toggle this option on or off to activate protection for the selected template.

Choosing the Protection Type
Select how you want to restrict access to the protected content:
- Password – Restrict access with a password that visitors must enter to view the content.
- User Role – Restrict access based on WordPress user roles, allowing only specific roles to view the content.
Configuring Password Settings
When using the Password protection type, configure the following options:
- Password – Set the password required to access the protected content.
- Placeholder Text – Customize the placeholder text displayed in the password input field.
- Submit Button Text – Customize the label on the submit button.
- Enable Cookie – Store the password in a browser cookie so returning visitors do not need to re-enter it for a specified number of days.
- Cookie Expiration – Set the number of days the cookie remains valid.
Configuring User Role Settings
When using the User Role protection type, select one or more WordPress user roles that are allowed to access the protected content. Visitors who are not logged in or do not have the required role will see the custom message instead.
Customizing the Message
Configure the messages displayed to unauthorized visitors:
- Message – Customize the message shown to visitors who do not have access to the content.
- Wrong Password Message – Set the error message displayed when a visitor enters an incorrect password.
Customizing Style Options
Fine-tune the visual appearance of the protection elements:
- Message – Adjust the padding, margin, alignment, text color, background color, and typography of the protection message.
- Form – Customize the form alignment, button colors, hover effects, and form field styling for the password input.
That’s it! You’ve successfully set up the Content Protection widget to restrict access to your content.
Next, would you like to add reveal animations to your content? Check out our guide on using the Content Reveal widget to learn more.
