How to Hide a Section by User Role in Elementor

Updated: May 24, 2021

Recently, Brizy has just released a new feature to allow users to hide a section (called block in Brizy) by certain parameters, including user role. Thanks to this feature, Brizy users are able to create a membership website without installing an additional plugin. You can read our previous article to learn more. By far, the same feature is not available in Elementor yet. If you want to accomplish the same thing in Elementor, you can use Happy Addons. It is an Elementor add-on that has the capability to hide an Elementor section, column, and widget by certain parameters, including user role.

Hiding an Elementor section or more is great for some scenarios. For instance, you can implement it to show content only to users with certain roles (e.g., administrator and editor only). In addition to displaying a section by user role, Happy Addons is also capable of hiding section by operating system, browser, login status, date range, and specific date.

How to Hide a Section by User Role in Elementor Using Happy Addons

Happy Addons is a freemium add-on. To be able to hide a section you need to use the pro version as the feature to do so is only available on Happy Addons Pro. You can download the pro version of Happy Addons on its official website. Install and activate the plugin once downloaded.

Once you are ready, edit your page with Elementor. On the Elementor editor, specify a section you want to hide and click the handle to turn the section into an existing mode (you can also use Elementor’s Navigator to ease your job).

On the settings panel, go to the Advanced tab and open the Happy Features block. Enable the Display Condition option. Since you want to hide the section, set to Hide Element on the To option. On the When option, set when you want to apply the conditions. There are two options you can set:

  • All Conditions Met: If you want to add multiple conditions, you can select this option to hide the section when all conditions are fulfilled.
  • Any Condition Met: If you want to add multiple conditions, you can select this option to hide the section when one of the conditions is fulfilled.

Open the existing display condition and change to User Role and set the role you want hide the section from. If you want to add more display conditions, you can simply click the ADD ITEM button.

That’s all. You can update your page once you are done editing it.

Originally posted on: April 7, 2021

This page may contain affiliate links, which help support WP Pagebuilders.

Building a website is as fun as playing puzzle with Elementor

Leave a Reply

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

Pin It on Pinterest

Thanks for commenting

Help us grow by sharing this post with your friends!

Support Us

Consider subscribing to help us grow. Get the regular articles about page builder plugins and WordPress in general.