HRTSoftX – Conditional Elements
Conditional Elements lets you create content with the WordPress block editor, add it to WordPress hooks, and control when it is displayed. Create Gutenberg content, choose where it should appear, and configure conditions to control its visibility. You can include or exclude content based on configur
Conditional Elements lets you create content with the WordPress block editor, add it to WordPress hooks, and control when it is displayed.
Create Gutenberg content, choose where it should appear, and configure conditions to control its visibility. You can include or exclude content based on configured conditions, control visibility by user role or device, and use custom WordPress action hooks when you need more flexibility.
Key Features
- Gutenberg Content – Create and manage content using the WordPress block editor.
- Flexible Placement – Add Gutenberg content before or after supported locations.
- Theme-Aware Placement – Automatically provides available placement options based on the active theme.
- Block Theme Support – Provides placement options for WordPress block themes.
- Custom Hooks – Add content to your own WordPress action hooks.
- Include Conditions – Display content when selected conditions are met.
- Exclude Conditions – Prevent content from being displayed when selected conditions are met.
- User Role Conditions – Control content visibility based on the current user’s role.
- Device Visibility – Show or hide content for desktop, tablet, or mobile devices.
- Shortcodes – Render Conditional Elements content directly inside posts, pages, templates, widgets, or other shortcode-compatible areas.
Placement
Conditional Elements provides theme-aware placement options based on the active theme.
For supported classic themes, additional theme-specific placement options may be available.
For other classic themes, common WordPress hook locations are available, including:
- Before Site Wrapper
- After Site Wrapper
- Before Header
- Before Inner Content