Conditional Blocks – Advanced Content Visibility Control for WordPress
Conditional Blocks is a powerful, no code plugin that allows you to control the visibility of any WordPress blocks within the Block Editor (Gutenberg) using advanced display logic. Replace multiple plugins with our versatile Conditional Blocks, developed for fast paced freelancers and agencies. 🌏 Get the full overview on conditionalblocks.com Create Better Sites with Less Plugins 🤩 Everything is block in modern WordPress development with Full Site Editing (FSE). In plain words, you apply conditional display logic to everything. Here’s some example use-cases where Conditional Blocks shines. Dynamic headers, navigation and menus, Cart Messages CTA & Marketing sections Restrict content & Access control Membership content Content Control And much more.. What’s Included in Conditional Blocks FREE The free version of Conditional Blocks offers 3 visibility conditions + The Conditions API for creating your own conditions . Lockdown condition: Hide blocks from everyone, perfect for preparing new content or working on drafts. User Status: Display content exclusively for logged-in or logged-out users, ideal for membership site content. Responsive designs: Control block visibility on mobile, tablet, and desktop screens for responsive designs. You can edit the CSS Breakpoints to match your theme too. Developer Focused: Create Custom Visibility Conditions for WordPress Blocks, such as custom user roles or membership levels. You can easily create your own integrations using code snippets. The free version is limited. Consider joining our PRO community to create better WordPress sites & support development. The Full Toolkit with Conditional Blocks Pro ✨ Conditional Blocks Pro unlocks the full suite of advanced block visibility conditions and integrations, allowing you to create truly dynamic and personalized user experiences: 🎯 Advanced Audience Targeting (Pro) Geolocation: Target or exclude visitors based on their Country or Continent using their IP address. Ideal for region-specific content, offers, or compliance. User Role: Precisely control visibility for specific user roles (Admin, Editor, Subscriber, WooCommerce Customer, custom roles, etc.). Device & Browser: Tailor experiences by showing/hiding blocks based on device type (iPhone, Android, Tablet, Desktop) or browser (Chrome, Firefox, Safari, etc.). Referrer URL: Display unique content to visitors arriving from specific sources like Google, X/Twitter, or other websites. ⚙️ Dynamic & Automated Content (Pro) Scheduling: Automate your content calendar! Display blocks only during specific date ranges, times of day, or days of the week – perfect for sales, events, or timely announcements. Post Meta & Custom Fields: Leverage your existing data by showing or hiding blocks based on post meta or custom field values (including ACF). URL Query String: Create dynamic landing pages or respond to campaign parameters by controlling visibility based on URL query strings. HTTP Cookies: Adapt content based on visitor cookie values for advanced tracking or personalization (Pro). Content Specificity: Target blocks to specific Post IDs, URL paths, Post Types, Taxonomies (like categories or tags), and even specific Terms. User Meta: Personalize content based on individual user metadata. Archive Pages: Show or hide blocks specifically on WordPress archive pages. 🔌 Powerful Integrations (Pro) Integrations are automatically available when the supported plugin is active. Advanced Custom Fields (ACF): Create hyper-personalized experiences by controlling block visibility based on your ACF field values. (Learn More) WooCommerce: Boost sales and improve shop UX! Show targeted messages based on cart total, products in cart, purchased products, or customer details. (Learn More) Easy Digital Downloads (EDD): Enhance your digital store with conditions based on cart value, purchased products, products in cart, or cart item categories. (Learn More) Paid Memberships Pro (PMPro): Easily restrict content based on membership levels, status, or specific user field data. (Learn More) MetaBox: Control block visibility based on the values stored in your MetaBox custom fields. (Learn More) ProfilePress: Restrict content visibility based on users’ active membership plans in ProfilePress. (Learn More) FluentCRM: Control block visibility based on FluentCRM user tags and contact lists. Perfect for targeted email marketing follow-ups. (Learn More) WP Fusion: Show or hide content based on WP Fusion tags synced from your CRM, enabling deep CRM-driven personalization. (Learn More) GTranslate: Display content conditionally based on the visitor’s selected language in GTranslate. (Learn More) 🚀 Workflow Boosters (Pro) Condition Presets: Save frequently used condition combinations and reuse them across your site with a single click. Custom PHP Logic: Implement highly specific or complex visibility rules using your own custom PHP functions. Combine with AND/OR Logic: Build sophisticated visibility rules by grouping multiple conditions with flexible AND/OR logic. See all Conditional Blocks Pro features & integrations Advanced Usage Managing WordPress content via blocks becomes easier when you know the tips & tricks. You can find more on our blog. Draft content on live pages Use the Lockdown condition to create draft blocks inside live content, and simply remove the condition when you’re ready to publish. You don’t have to worry about people seeing the content before it’s complete. Using the Lockdown Condition eliminates need to create a separate draft page. Apply Conditions to Groups One of our favorite methods of managing WordPress content is to use Group Blocks. If you setup a Group Blocks you can set conditions directly the Group, this means that all nested blocks inside the Group will automatically follow the same visibility conditions. Design Patterns Yes it’s also possible to pre-make dynamic templates using Conditional Blocks. You’ll have to make use of the WordPress Design Patterns. Simply make a patterns as you’ve also done while applying the visibility rules. The patterns will be ready and be conditionally displayed when you insert it on a page. We personally use the same method on Synced Patterns too. (Previously known as Reusable Blocks in Gutenberg). Restrictive content made easy Control access to any block by clicking on it within the Block Editor and using the Condition Builder to add visibility rules. Perfect for members-only content. Responsive designs simplified Effortlessly adapt your blocks for mobile, tablet, or desktop display, automatically showing or hiding content according to screen sizes. LEARN MORE Get Pro: See pricing & go Pro today. Documentation: Learn how to set up and use our features. Blog: Read our guides and tutorials. Website: Find out more about us and the PRO version. X (Twitter): Follow us on X. MORE Block Plugins Find My Blocks: Locate all instances of blocks across your WordPress pages. Compatibility Conditional Blocks works with any theme or plugin that uses the WordPress Block Editor (also known as Gutenberg). Block widget & Full Site Editing (FSE) within themes are also supported. Tested and compatible with: Stackable Blocks Spectra Blocks Atomic Blocks CoBlocks Editorskit WooCommerce Blocks (Product Blocks) Easy Digital Downloads Blocks Ultimate Addons for Gutenberg Otter Blocks & Templates GenerateBlocks Kadence Blocks Kadence Theme Genesis Blocks Twenty Twenty-Two theme Twenty Twenty-Four theme Wabi theme Poe theme WooCommerce Storefront WordPress Site Editor Gutenberg WordPress Site Templates OllieWP theme For support or help with other plugins, please get in touch.
Top keywords
- blocks36×3.21%
- content25×2.23%
- visibility16×1.43%
- pro13×1.16%
- block12×1.07%
- wordpress12×1.07%
- conditional11×0.98%
- learn11×0.98%
- conditional blocks10×0.89%
- conditions10×0.89%
- custom9×0.80%
- user9×0.80%
Visibility Logic for Elementor
Visibility Logic adds powerful conditional display conditions to every Elementor widget, section, and container. Control exactly who sees what, when, and on which device — without writing a single line of code. Hidden elements are completely removed from the HTML (not just hidden with CSS), keeping your pages fast and your content secure. When to use Visibility Logic Restrict content to logged-in users, specific roles, or subscribers Schedule content to appear during a sale, event, or launch window Personalize pages based on user meta, ACF custom fields, or device type Show/hide elements for Desktop, Tablet, or Mobile visitors A/B test layouts by showing different content to different user segments Hide empty sections automatically when all child widgets are hidden Free Conditions ACF Fields (NEW) — Show/hide based on Advanced Custom Fields values on the current post or page. 7 operators: is empty, is not empty, equals, not equals, contains, is true, is false. Device Type (NEW) — Target Desktop, Tablet, or Mobile users with server-side User-Agent detection. Hidden elements are fully removed from HTML. User Role — Logged in, logged out, or specific roles (Administrator, Editor, Subscriber, custom roles). User Meta — Show/hide based on any user meta field value. Date & Time — Schedule visibility with “from” and “to” dates. Perfect for sales, events, and time-limited content. Browser Type — Target Chrome, Firefox, Safari, Edge, Opera, iPhone, Android, and more. Flexbox Containers — Full support for Elementor’s Flexbox containers, classic sections, and nested containers. Hide When Empty — Automatically hide a parent section/container when all child widgets are hidden by visibility conditions. PRO Conditions Advanced ACF — Repeater fields, options page, term meta, user fields, specific post/user sources, AND/OR logic with 17 operators. Language — Show/hide based on current language. Supports WPML, Polylang, and TranslatePress. URL Parameters — Standalone query string conditions with repeater support and 9 operators. Geo Location — Display elements based on visitor’s country using MaxMind geolocation. Dynamic Conditions — Use all Elementor Pro Dynamic Tags as visibility conditions. WooCommerce — Restrict content based on order history, active subscriptions, or customer status. Easy Digital Downloads — Restrict based on purchase history or subscription status. Advanced User Meta — Multiple user meta conditions with AND/OR logic. Post & Page, Taxonomy — Show/hide based on current post type, specific pages, or taxonomy terms. Archive — Conditions based on post type archives and taxonomy archives. IP & Referrer — Target visitors by IP address or referral source. WordPress Conditional Tags — Use any WordPress conditional tag as a visibility condition. Fallback Content — Replace hidden elements with a custom text message or an Elementor template. Copy/Paste — Right-click to copy visibility settings between widgets or sections. Get Visibility Logic Pro and unlock all conditions. How it works Edit any page with Elementor Select a widget, section, or container Go to the Visibility tab (or Advanced → Visibility Control) Enable conditions and configure your display rules Save — elements are shown or hidden on the live site based on your rules More from StaxWP BuddyBuilder — BuddyPress Builder for Elementor — Build stunning BuddyPress communities with Elementor. Elementor Addons & Widgets — Powerful widgets to help you build stunning pages. Woo Addons for Elementor — Elementor enhancements for WooCommerce. Privacy Policy We use Appsero SDK to collect some telemetry data upon user’s confirmation. This helps us troubleshoot problems faster and make product improvements. Found a bug? Report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team helps validate, triage, and handle any security vulnerabilities. Credits This plugin implements some functionality similar to: * Dynamic Content for Elementor (GPL v2 or later)