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.

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

Leave a Comment

Pin It on Pinterest

Thanks for commenting

Help us grow by sharing this post with your friends!

Join 500+ WordPress users receiving tips and insights on creating on WordPress with Elementor.

Hello.

How long have you been using WordPress? If you are an old WordPress user, then you have been a witness how WordPress has evolved massively. It has gone from a merely blogging tool into a comprehensive website builder. You can now use WordPress to create any type of website. From e-commerce website, LMS, listing website, membership website, to social media website.

Do you know what’s more interesting?

You can create your website with WordPress without touching a single line of code. At WP Pagebuilders, we write a lot about how to get the most out of WordPress in the no-code era. Subscribe and be first to know our newest content.