GenerateBlocks continues to push the boundaries of what’s possible with WordPress block editing, and the release of version 2.4 is no exception. This update builds on previous innovations to give you even more control over your content, expanding conditional display to any block, including core WordPress blocks and even menu items in Appearance > Menus.
This simple yet powerful enhancement opens up a world of dynamic content possibilities without adding bloat or complexity. Previously, WordPress users required additional plugins for conditional display or conditional menus. Now, all of the power of Conditions is available to GenerateBlocks Pro users.
Conditions in GenerateBlocks Pro 2.3
In GenerateBlocks Pro 2.3, we introduced Overlay Panels and an advanced Conditions system. Overlay Panels allowed users to create interactive elements like popups, modals, mega menus, off-canvas panels, and more, all built with GenerateBlocks’ signature efficiency. Triggers such as clicks, hovers, exit intent, or even WooCommerce events make these overlays incredibly versatile.
Paired with Overlays is the Conditions feature, which let you dictate when and where these overlays appear based on a wide range of criteria. These conditions include user roles, device types, specific pages or archives, query parameters, dates, times, referrers, post/user meta, cookies, language, and more.
You can group conditions with AND/OR logic for precise targeting, and reuse them across multiple panels. This was a game-changer for creating personalized, engaging experiences while keeping sites lightning-fast.
GenerateBlocks Conditions have numerous benefits, including:
- Reusability. Conditions can be set in one place and used in a variety of implementations.
- Central management. Manage all of your set Conditions from one location, making long term management of all Conditions, and comparison of various Conditions, much easier.
- Immediate access. Set and manage Condition implementation from various locations in wp-admin while editing pages or posts.
- Exportable. Take Conditions set for one site and export to another through exporting a JSON file of set Conditions.
- Dynamic Content Capabilities. Combine Conditions with GenerateBlocks Dynamic Tags, GeneratePress Elements, or Synced Patterns for truly dynamic content.
- Nestable. One Condition can be set for the parent container with another Condition in an inner container for infinite possibilities.
The 2.3 release emphasized no-code solutions to reduce plugin dependency, boosting user engagement and conversions without sacrificing performance.
Expanding Display Conditions for Any Block
GenerateBlocks 2.4 takes the Conditions foundation from 2.3 and expands its application to any block, including WordPress core blocks. That means not just GenerateBlocks’ own elements like Containers, Grids, or Headlines, but also core WordPress blocks such as Paragraphs, Images, or Headings and more.
The implementation is simple. In the block editor, you’ll now find a new option under Advanced > Display Conditions for every block. Here, you can select from your pre-defined conditions created in the GenerateBlocks > Conditions dashboard or create new ones on the fly. This capability is built directly on the robust system from 2.3, so all those powerful criteria such as location, user data, device, time-based rules are now available anywhere.
How to Use Conditions for Any Block
Conditions in GenerateBlocks 2.4 can be used in numerous ways. Some examples:
- Show exclusive content only to subscribers and members.
- Deliver personalized offers based on user role or profile.
- Optimize user experience with device-specific content.
- Trigger targeted calls-to-action from ad campaigns or UTM tags.
- Swap in affiliate or partner-specific promotions automatically.
- Display location-based banners and region-specific offers.
- Personalize content with cookie tracking for returning visitors.
- Dynamically update visibility using product, post, or user data.
- Run time-limited sales with scheduled start and end dates.
- Automate event promotions that appear and expire right on time.
This universality means you can create truly dynamic pages without needing additional plugins to add conditional logic or shortcode hacks. It’s all handled natively within GenerateBlocks Pro, ensuring compatibility and optimal performance.
How to Get Started with Display Conditions in 2.4
Using Conditions is intuitive, especially if you’re already familiar with the functionality in GenerateBlocks 2.3 Pro. As this release is currently in alpha, we highly recommend testing on a development or staging server. We don’t recommend alpha or beta releases for production websites.
- Update to GenerateBlocks Pro 2.4 Alpha. Download the development version from your dashboard. Head to your WordPress dashboard and upload the development version to your test or staging site via Plugins > Add Plugins and choose the Upload Plugin button at the top. Make sure to receive development updates to keep the development version updated.
- Create or Reuse Conditions. Go to GenerateBlocks > Conditions. Build your rules based on your display goals. Group them logically for complex scenarios.
- Apply to Blocks. In the block editor, select any block where you’d like the condition applied. Navigate to the Advanced tab in the block settings sidebar, and look for the Display Conditions dropdown. Choose your condition, and you’re set!
- Test Thoroughly. Preview on different devices, user roles, and scenarios to ensure everything triggers as expected.
Since conditions are reusable, you can apply the same rule across multiple blocks or pages, saving time on larger sites.
Benefits of This Expansion
GenerateBlocks 2.4 is a productivity booster for designers and developers alike. It offers:
- Greater Flexibility. No more limitations to overlays. Now, entire sections of your site can adapt dynamically.
- Improved User Experience. Deliver personalized content that feels tailored, increasing engagement and reducing bounce rates.
- Performance-First. Like everything in GenerateBlocks, this adds minimal overhead. No heavy scripts or database queries beyond what’s necessary.
- Reduced Plugin Bloat. Ditch those extra conditional display plugins; GenerateBlocks handles it all in one lightweight package.
- Accessibility and SEO Friendly. Conditions run server-side where possible, ensuring content is crawlable and accessible.
Whether you’re building e-commerce sites, membership portals, or blogs, this update empowers you to create smarter, more responsive designs.
GenerateBlocks Continues to Evolve
GenerateBlocks 2.4 adds increasing capabilities to an already powerful plugin by making display conditions universally accessible. By building on the solid Conditions framework from 2.3, it delivers a seamless way to apply logic to any block without overcomplicating your workflow. If you’re serious about WordPress site-building, this release solidifies GenerateBlocks as an essential tool in your arsenal.
Sounds great! Will it be compatible with common cacheing solutions? E.g. if setting a time-based trigger, would that still work with Cloudflare / varnish / etc. so that the time-specific block doesn’t linger in cache?
If your content is dynamic, you may have to enter exclusions to caching to ensure that content that shouldn’t be cached isn’t cached. As that’s done at a different layer than the actual application, you’ll need to ensure that.