Skip to content
Help Center
  • Pricing
  • ProductsExpand
    • Premium PlansGet all the tools you need in one plan
    • Kadence ThemeLightning-fast performance theme for modern websites
    • Kadence BlocksDrop in ready designs with advanced controls for pixel perfect websites
    • Kadence Shop KitCreate a more effective WooCommerce shopping experience
    • Kadence ConversionsBoost sales and build engaged audiences with popups and banners
    • Kadence InsightsEasily create A/B tests. Optimize your pages to drive higher conversions.
    • View All Products
    • Get Kadence + Hosting
      In One Place

      Enjoy faster setup, top-tier performance, and worry-free WordPress hosting – Kadence Theme, Kadence Blocks, and Solid Security all pre-installed.

      Learn More

  • Kadence AI
  • Starter Templates
  • Blog
  • SupportExpand
    • Resource HubStart here for guides, Product docs, FAQs, and Troubleshooting tips, all in one place.
    • Contact SupportStuck on something? We’re here to help! Open a ticket for top-notch support.
    • Contact Our TeamGot pre-sales questions or need help choosing a plan? Open a ticket and our team will guide you.
    • About usCrafted with love in Missoula, Montana. Meet the team behind the mission.
Account Account
Get Kadence
Kadence Blocks
  • Features
  • Pro
  • Blocks
  • HelpExpand
    • Documentation
    • Submit a Ticket
    • Facebook Group
    • Feature Requests
    • Roadmap
    • Changelog
Help Center
Kadence Blocks

Kadence Blocks

  • Row Layout Block
  • Text (Adv) Block
  • Buttons (Adv) Block
  • Image (Adv) Block
  • Gallery (Adv) Block
  • Section Block
  • Testimonial Block
  • Table of Contents Block
  • Form Block
  • Form (Adv) Block
  • Table (Adv) Block
  • Accordion Block
  • Tabs Block
  • Info Box Block
  • Google Maps Block
  • Show More Block
  • Icon Block
  • Icon List Block
  • Progress Bar Block
  • Posts Block
  • Count Up Block
  • Countdown Block
  • Vector Graphic Block
  • Lottie Animations Block
  • Repeater Block
  • Spacer/Divider Block
  • The Kadence Header (Adv) Block
  • The Kadence Navigation (Adv) Block
  • The Kadence Navigation Link Block
  • Search (Adv) Block
  • Site Identity Block
  • Kadence Blocks Default Icon Selections

Getting Started

  • Installing Kadence Blocks
  • Getting Started with Kadence Performance
  • Kadence AI-Powered Design Library
  • Setting custom widths in multi-column Row Layout Blocks
  • How to define a color Palette with Kadence Blocks
  • How to delete/remove a Block
  • How to Duplicate and Copy/Paste Block Styles
  • Setting Block Defaults
  • Kadence Blocks Pexels Integration

Block Tutorials

  • How to Import and Export Blocks or Sections Between Websites
  • How to Use Flexbox Layouts with Section Blocks
  • How to Make a Top Section Sticky with Kadence Blocks
  • Using Padding and Margin in Kadence Blocks
  • Responsive Breakpoints in Kadence
  • Using GIFS and Lottie Animations with Kadence Blocks
  • Adding a Fullwidth Row
  • Modal Block Quick Start Guide
  • Image Overlay Quick Start Guide
  • How to hide Kadence blocks via WordPress Gutenberg Preferences
  • How To Add Animate on Scroll Effects To Your Page
  • How to add Custom CSS Classes and HTML IDs to Kadence Blocks
  • How to Show Events Using the Kadence Post Grid/Carousel Block
  • How to use Popup Modal Filters with Advanced Query Loops
  • Create a Full Screen Landing Page
  • Displaying Shortcodes in the WordPress Editor
  • Advanced Navigation Sub Menus and Mega Menus
  • Creating Sticky and Transparent Advanced Headers
  • Getting started with Advanced Header/Navigations
  • Building Headers and Footers in Full Site Editing with Kadence Blocks
  • Split Content Quick Start Guide
  • Applying Block-Level Custom CSS in Kadence Blocks
  • How to Access the Kadence Design Library
  • Adding Video Backgrounds to Row Layout
  • Pexels Picker
  • Adding Classic Wireframes, Starter Packs, and Sections to the New Design Library
  • How to customize the design library color palette
  • Adding Privacy Policy link to Kadence Form
  • Set Equal Column Heights with the Row Layout Block
  • How to Control the Hero or Title Section Sitewide and Per Page in Kadence
  • How to Change the Query Loop (Adv) “All” Button Text

Kadence Blocks Pro

  • Kadence Blocks Pro Plugin
  • Product Carousel Block
  • User Info Block
  • Portfolio Grid/Carousel Block
  • Query Loop (Adv) Block
  • Post Grid/Carousel Block
  • The Kadence Block Controls
  • Dynamic Content
  • Display Blocks Conditionally (Conditional Display)
  • Advanced Slider
  • Video Popup Block
  • Image Overlay Block
  • Split Content Block
  • Modal Block
  • Using a Dynamic List Block
  • Dynamic Content: Custom Input and Showing Fields from all Post Types
  • Dynamic HTML Block
  • Using Custom SVG Icons with Kadence Blocks Pro
  • Kadence Custom Fonts
  • Post Grid/Carousel Block – Configure a Blog List

Troubleshooting Blocks

  • Troubleshooting the “Error, Unable to access library database, please try re-syncing” error on the Kadence Blocks Design Library
  • Troubleshooting Query Loop (Adv) Blocks, Filters, and Search issues
  • Kadence Blocks Errors when SCRIPT_DEBUG is Enabled
  • Troubleshooting White/Blank Screens in the Editor or Customizer
  • How to Force Reindex Advanced Queries
  • How to Download Previous Versions of the Kadence Theme and Plugins
  • Resolving Autoplay Problems in Advanced Slider/Gallery Blocks
  • Recommended Server Resources
  • Troubleshooting Kadence Form (Adv) Email Delivery
  • How to Recover a Broken Block

Advanced

  • How to Modify SVG Dividers in Kadence Row Layout Blocks
  • How to Override the Kadence Forms Email Template
  • Prebuilt Layouts
  • How To Set Your Own Conditions for Successful Form (Adv) Submissions
  • How to Block Form (Adv) Spam Using WordPress Disallowed Comment Keys
  • Custom Queries for the Portfolio Grid/Carousel Block (Filter)
  • Customizing the Kadence Blocks Pro Post Grid/Carousel block’s Query to show multiple post types
  • Custom Queries for the Posts Block (Filter)
  • How to Set a Gradient Border for the Section block
  • Run JavaScript when Query Loop (Adv) Updates
  • Custom Upload Directory in Kadence Form (Adv) Block
  • Populate Select, Checkbox, and Radio field option values programmatically in Form (Adv)
  • Query Loop (Adv) Block: Split Character Filter
  • How to add Multiple Markers in the Kadence Google Maps Block
  • Custom Queries for the Post Grid/Carousel Block (Filter)
  • How to Run JavaScript After a Kadence Form is Successfully Submitted (On Event)
  • Dynamically Displaying ACF or Metabox Relationships in Query Loop (Adv) blocks
  • How to Customize the Kadence Blocks Variable Font Sizes (SM, MD, LG, XL, 2XL, and 3XL)
  • Using Tooltips with Kadence Blocks
  • Custom Queries for the Advanced Query Loop Block (Filter)
  • Adding a Custom Font to Kadence Blocks

Advanced Headers

  • How to use Advanced Headers Globally and Conditionally in Kadence
  • The Kadence Header (Adv) Block
  • Using Advanced Header / Navigation Blocks vs Kadence Theme Header Builder
  • Advanced Header Best Practices
  • Getting the most out of Navigation Link Blocks
  • Creating Sticky and Transparent Advanced Headers
  • Advanced Navigation Sub Menus and Mega Menus
  • The Kadence Navigation Builder
  • The Kadence Visual Builder & Off Canvas Settings
  • Importing & Exporting Advanced Headers & Navigations

Kadence Form Integrations

  • How to Modify the Form (Adv) Submit Actions using a Filter
  • How to integrate hCaptcha with Kadence Form (Adv) Blocks
  • How to Integrate Kadence Forms with Cloudflare Turnstile
  • How to Integrate Google reCAPTCHA with Kadence Forms
  • How to Integrate Google Analytics with Kadence Forms
  • Integrating Kadence Forms with FluentCRM
  • Integrating Kadence Forms with Kit (ConvertKit)
  • Kadence Forms and Database Entries
  • Kadence Forms and Auto Respond Emails
  • Integrating Kadence Forms with Webhooks
  • Integrating Kadence Forms with Mailchimp
  • Integrating Kadence Forms with Brevo
  • Integrating Kadence Forms with ActiveCampaign
  • Integrating Kadence Forms with Mailerlite
  • Home
  • Knowledge Base
  • Kadence Blocks
  • Kadence Blocks
  • Kadence Blocks Pro

Display Blocks Conditionally (Conditional Display)

The Conditional Display feature in Kadence Blocks Pro allows you to set dynamic visibility rules for specific blocks, such as Advanced Text, Row Layout, and Section blocks. When enabled, you can conditionally display content based on custom criteria, improving personalization and dynamics across your pages.

Table of Contents
  • Conditional Display Settings
    • Conditionals
    • Conditional Source
    • Compare Type
  • Using Conditional Display
    • Adding Multiple Conditions

Conditional Display Settings

Conditional Display Settings can be found in available blocks by selecting the block and going to the Block Settings -> Advanced Tab. Here, you can expand and use the available Conditional Display Settings.

The Conditional Display Settings are available for the following blocks:

  • Image (Adv) Block
  • Text (Adv) Block
  • Section Block
  • Row Layout Block
  • Slider (Adv) Block (Individual Slides)
  • Accordion Block (Individual Panes)
  • Tabs Block (Individual Tabs)
  • Icon Block (Single Icons)
  • Icon List Block (List Items)
  • Buttons (Adv) Block (Single Buttons)
  • Info Box Block
  • Testimonials Block (Individual Testimonials)

Learn more about each Conditional Display Setting below.

conditional display

Conditionals

Conditionals allow you to grab content dynamically to base your Condition. There are many conditionals available, such as the Post Title, Author Display Name, Post Custom Field, etc. View all of the available Conditionals below.

Available Conditionals

  • Post Custom Field
  • Post Title
  • Post URL
  • Post ID
  • Post Date
  • Post Last Modified Date
  • Featured Image URL
  • Post Type
  • Post Status
  • Post Has Taxonomy
  • Repeater Custom Field
  • Archive Title
  • Archive URL
  • Archive Custom Field
  • Author Display Name
  • Author First Name
  • Author Last Name
  • Author Custom Field
  • Comments Count
  • URL Path
  • Full URL
  • Query Param

User Conditionals:
Use the available User Conditionals to conditionally show blocks based on the current user.

  • User Logged-In
  • User Role
  • User Display Name
  • User First Name
  • User Last Name
  • User Custom Field

Conditional Source

By default, the Conditional Source will use the Current Post. This is standard for Dynamic Content and will always grab from the Current Post/Page that is being viewed.

However, the Conditional Source can be changed to a specific Post or Page as well for specific use cases. This can be done by clicking on the Edit Pencil Icon within the Conditional Source Box.

Conditional Source

Compare Type

Kadence Conditional Display provides a list of different selectable Compare Types. These are standard PHP Comparison Operators and can be used for comparing your Conditional Content. View the chart below to see each Comparison Type and a brief description of what each Operator means.

Compare Type

Description

Not Empty

Displays the block if the condition is not empty.

Empty

Displays the block if the condition is empty.

True

Displays the block if the condition evaluates to true (Boolean).

False

Displays the block if the condition evaluates to false (Boolean).

=

Displays the block if the condition is equal to a specified value.

!=

Displays the block if the condition is not equal to a specified value.

>=

Displays the block if the condition is greater than or equal to a specified value.

<=

Displays the block if the condition is less than or equal to a specified value.

>

Displays the block if the condition is greater than a specified value.

<

Displays the block if the condition is less than a specified value.

Using Conditional Display

The Conditional Display setting in Kadence Blocks Pro enables you to control block visibility based on specific conditions. For instance, imagine a Single Post Template where a Dynamic Advanced Image block is set to display the post’s Featured Image.

Featured Image

This setup allows the Featured Image to appear dynamically whenever a post includes one. However, if a post doesn’t have a Featured Image, it will leave extra blank space in the layout. In these cases, the Conditional Display setting can be used to hide the image block when no Featured Image is present, keeping the design clean and consistent.

Post With Featured
No Image

This is an example of what the front end would look like when a Post doesn’t have a Featured Image in this case.

With Conditional Display, you can ensure the block only appears if a Featured Image is available, eliminating empty spaces on posts that lack one. This feature allows for cleaner, more responsive layouts by adapting dynamically to the structure of your content.

To set this up, go to Advanced Image → Block Settings → Advanced Tab → Conditional Display.

For the condition, select Featured Image URL and leave the Conditional Source as Current Post.

Then, set the Compare Type to Not Empty.

This configuration will ensure the block displays only if the post has a Featured Image URL, which is present only when a Featured Image is set for the post. If there is no Featured Image, the block will remain hidden on the front end, maintaining a clean and consistent layout across all posts.

Conditional
No Image

This is an example of what the front end would look like for a post that doesn’t use the Conditional Display feature.

Conditional Image Sample

This is an example of what the front end would look like for a post that uses the Conditional Display feature. Notice the spacing where the Image would be is eliminated.

This is just one example of how you can leverage Conditional Display to create truly dynamic WordPress websites.

Adding Multiple Conditions

Once you enable and use Conditional Display, you can also add multiple conditions. This can be useful in specific cases where more than one condition needs to be met. Just click on the Add Condition button below the first conditional display set up. Then, you will have the same options to add a second condition accordingly.

Adding a Condition

An example could involve showing a block only for logged-in users who have a specific user role. You would first set a condition using “User Logged-In” to ensure only authenticated users see the block. Then, add a second condition using “User Role” and using the slug of a desired role, such as “Subscriber.” With these two conditions combined, the block will appear only when both the user is logged in and has the specified role, allowing you to personalize content dynamically for different audience segments.

You can use the Logic Operator to determine how multiple conditions are evaluated. For example, you might want a block to display only when a user is logged in and has the role of “Subscriber.” In this case, you would set the first condition to User Logged-In = True and the second condition to User Role = Subscriber, then choose the AND operator. The block will only appear when both conditions are met.

Alternatively, if you select the OR operator, the logic changes: the block will display if either the user is logged in or the user role is “Subscriber.” This gives you precise control over how multiple conditions interact to show or hide content dynamically.

Multiple Conditions
Do you feel this document was helpful?
Dynamic ContentAdvanced Slider
The Kadence WP Logo
Crafted in Missoula, Montana
  • Follow Kadence on Facebook
  • Follow Kadence on Youtube
  • X
  • Follow Kadence on Instagram
Trustpilot
Products
  • Kadence Plans
  • Kadence Theme
  • Kadence Blocks
  • Kadence AI
  • Kadence Starter Templates
  • Kadence Shop Kit
  • Kadence Conversions
  • Kadence Pattern Hub
  • View All
Resources
  • Blog
  • Podcast
  • Knowledgebase
  • Support ticket
  • Feature Requests
  • FAQ
  • WordPress Hosting Services
About Us
  • About Kadence
  • Become an affiliate
  • Contact us
  • Terms
  • Privacy Policy
  • Security
Our Partner Brands
  • SolidWP
  • LearnDash
  • The Events Calendar
  • GiveWP
  • MemberDash
Kadence Community
  • Kadence Marketplace
  • Join the Facebook Group
  • Subscribe to our YouTube Channel
© 2024 Kadence WP | All prices are in USD
Logo for StellarWP an umbrella brand of Premium WordPress plugins
  • Pricing
  • Products
    • Premium PlansGet all the tools you need in one plan
    • Kadence ThemeLightning-fast performance theme for modern websites
    • Kadence BlocksDrop in ready designs with advanced controls for pixel perfect websites
    • Kadence Shop KitCreate a more effective WooCommerce shopping experience
    • Kadence ConversionsBoost sales and build engaged audiences with popups and banners
    • Kadence InsightsEasily create A/B tests. Optimize your pages to drive higher conversions.
    • View All Products
    • Get Kadence + Hosting
      In One Place

      Enjoy faster setup, top-tier performance, and worry-free WordPress hosting – Kadence Theme, Kadence Blocks, and Solid Security all pre-installed.

      Learn More

  • Kadence AI
  • Starter Templates
  • Blog
  • Support
    • Resource HubStart here for guides, Product docs, FAQs, and Troubleshooting tips, all in one place.
    • Contact SupportStuck on something? We’re here to help! Open a ticket for top-notch support.
    • Contact Our TeamGot pre-sales questions or need help choosing a plan? Open a ticket and our team will guide you.
    • About usCrafted with love in Missoula, Montana. Meet the team behind the mission.
Account Login
  • Features
  • Pro
  • Blocks
  • HelpExpand
    • Documentation
    • Submit a Ticket
    • Facebook Group
    • Feature Requests
    • Roadmap
    • Changelog