Description
Hide or show an Elementor widget based on whether a user is logged in, logged out (guest) or a specific role.
You can also hide an entire section too or show it just for specific users.
Based on your visibility setting for each widget you can restrict rendering elements on front-end, meaning that you can hide or show any Elementor widget based on the user role(Subscriber, Author, Administrator, etc), if the user is Logged our or if the user is Logged in.
Other restriction options to come. Suggestions are welcomed.
Here is how you will find the Elementor visibility restrict settings:
1. Open a page with Elementor
2. Go and select any widget from the page
3. Go to Advanced – Visibility control
4. Here you will find the restriction settings for your element.
More from StaxWP
Check out BuddyBuilder plugin.
Create stunning communities on your site powered by Elementor and BuddyPress
Screenshots
Installation
- Upload the plugin to your ‘wp-content/plugins’ directory
- Activate the plugin
- Edit a page using Elementor
- Select an existing element or add a new one.
- Go to Advanced – Visibility control
- Enable conditions and set your restrictions for the Elementor widget
- That is it 🙂
Reviews
Contributors & Developers
“Visibility Logic for Elementor” is open source software. The following people have contributed to this plugin.
Contributors“Visibility Logic for Elementor” has been translated into 7 locales. Thank you to the translators for their contributions.
Translate “Visibility Logic for Elementor” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.2.0
- Fixed the edge case when you combined hidding elements for guests and user role
1.1.0
- Made the selectors full width since there was a bug with Select2 control
1.0.4
- Made changes to the hiding logic and the element is fully hidden, no extra empty wrapping divs shown
1.0.3
- Visibility settings added for Section
1.0.2
- Added translation pot file
1.0.0
- Initial release
Be a contributor
If you want to contribute, go to our GitHub Repository.
You can also add a new language via translate.wordpress.org.