Kalium Documentation
HomeAccountPricingChangelog
  • Getting Started
    • Introduction
      • Before Getting Started
        • Hosting and Domain
        • WordPress Installation
        • Server Requirements
      • How To Purchase Kalium
    • Installation
      • Installing theme via WordPress
      • Installing theme via FTP
      • License Activation
      • Importing a Starter Site
      • Installing Required Plugins
      • Child Theme
      • Updating Kalium
    • License
      • Managing Licenses
      • Activation Scope
      • Prorating Plan Updates
    • Dashboard
    • Customizer
    • Migrating from Kalium 3 to 4
      • Migrating Automatically
      • Migrating Manually
  • General
    • Header
      • Layouts
      • Custom Header
        • Elements
      • Styling
      • Top Bar
      • Sticky Header
      • Mobile Menu
      • Other Options
      • In Page Options
    • Footer
      • Adding/Editing Content
      • Styling
    • Sidebars
      • Troubleshooting Sidebar
  • Post Types
    • Blog
      • Blog Page
      • Post Page
      • Creating a Blog Page
      • Creating a Blog Post
    • Portfolio
      • Portfolio Page
      • Project Page
      • Creating a Portfolio Page
      • Creating a Portfolio Item
        • Side Portfolio
        • Columned
        • Carousel
        • Zig Zag
        • Fullscreen
        • Lightbox
        • Design Your Own
    • WooCommerce
      • General Settings
        • Mini Cart
        • Free Shipping Bar
        • Product Badges
      • Product Catalog
        • Product Card
      • Product Page
      • Product Images
      • Cart & Checkout
      • My Account
      • Store Notice
    • Search Results
  • Template Parts
    • What are Template Parts?
    • Creating Template Parts
      • Creating a Section
        • Creating a Section with Elementor
        • Creating a Section with WPBakery
      • Creating a Header
      • Creating a Header
      • Replace a Page
    • Settings
      • Type
      • Display Conditions
      • Placement
      • Container Settings
  • Typography
    • Fonts
      • How to Add a Font
        • Adding Adobe Fonts
        • Adding Self-Hosted Fonts
        • Adding External Fonts
      • Custom Selectors
      • Advanced Settings
    • Font Sizes
    • Typography Settings
  • Styling
    • Brand and Logo
    • Colors
    • Buttons
    • Forms
    • Layout
    • Link Styles
    • Site Frame
  • Translation
    • Translation introduction
    • Translating with WPML
    • Translating with Loco Translate
    • Translating with Poedit
    • Adding a Language Switcher
    • RTL Languages
  • Other
    • Social Icons
    • Image Placeholder
    • Breadcrumbs
    • Scroll to Top
    • Maintenance Mode
    • Lightbox
    • Custom CSS
  • Troubleshooting
    • Manage Options in Customizer
    • Bad Hosting Environment
Powered by GitBook
On this page
  • How to Add Conditions
  • Using “is” and “is not”
  • Condition Types
  • Logical Operators: AND / OR
  1. Template Parts
  2. Settings

Display Conditions

PreviousTypeNextPlacement

Last updated 13 days ago

Display Conditions let you control where and when a Template Part appears on your site.

You can create rules to include or exclude specific areas based on page type, user role, WooCommerce state, date, and more — giving you full control over visibility without writing any code.

This works with all Template Part types: Sections, Headers, Footers, and Pages.


How to Add Conditions

While editing a Template Part:

  1. Click the Kalium icon in the top-right corner to open the settings panel

  2. Scroll to the Display Conditions section

  3. Click Add Condition

  4. Choose a condition type (e.g. General Page, Single Post, etc.)

  5. Set the rule using is or is not

  6. Select the target (e.g. a specific page, post type, or user role)


Using “is” and “is not”

Each condition supports two rule types:

  • is – The Template Part will be shown on the selected target(s)

  • is not – The Template Part will be hidden on the selected target(s)

Example:

  • is → Show on the Front Page

  • is not → Show everywhere except the Front Page


Condition Types

Here’s a full list of supported condition types, grouped for clarity. These allow you to target content by page, post, user status, device type, time, and more.

General Page

Where it applies

Entire Site

Applies to every page on your site

Front Page

The homepage of your WordPress site

Blog Page

The main blog listing page

404 Error Page

The "Page Not Found" screen

Search Page

Search results pages

Singular Content

Where it applies

Single Post

Individual blog posts

Single Page

Individual static pages

Custom Post Type Single

Select any custom post type (e.g. Portfolio, Product), then choose specific items

Attachment

Media attachment pages

Archive

Where it applies

Blog Archive

The main post archive

Date Archive

Archives by day, month, or year

Author Archive

Pages listing posts by a specific author

Custom Post Type Archive

Archive page for custom post types (e.g. Products, Portfolios)

Taxonomy

Where it applies

Category Archive

Blog categories (e.g. News, Tutorials)

Tag Archive

Blog tags

Custom Taxonomy Archive

Choose custom taxonomy and terms (e.g. Product Categories, Portfolio Types)

User

Where it applies

Logged In

Shows only to users who are logged in

Logged Out

Shows only to users who are not logged in

User Role

Target specific roles like Administrator, Editor, Subscriber, Customer, etc.

WooCommerce

Where it applies

Product Page

Individual product pages

Shop Archive

The main shop page

Product Category Archive

Category listings (e.g. T-Shirts, Shoes)

Product Tag Archive

Tag listings on products

Cart Page

The WooCommerce cart page

Checkout Page

The WooCommerce checkout

My Account Page

Customer account area (login, orders, etc.)

WooCommerce-specific conditions only appear if WooCommerce is active on your site.

Date & Time

Where it applies

Specific Date

Show only on a selected date

Specific Time

Show only during a specific time of day

Specific Days

Show only on selected weekdays (e.g. weekends only)

Custom Condition

Where it applies

PHP Callback

Enter a custom PHP function that returns true/false

Post Meta

Target based on a meta key/value with operators (e.g. meta_key = value)

URL Query String

Match parts of the URL (e.g. ?utm_campaign=summer)

Referrer URL

Show based on the referring page or site


Logical Operators: AND / OR

When adding more than one condition, you'll see a toggle at the top of the conditions panel to choose between AND and OR.

These are called logical operators, and they control how the conditions work together:

  • AND – All conditions must match for the Template Part to appear Example: Show only on the Cart page AND only for logged-in users

  • OR – The Template Part appears if any of the conditions match Example: Show on the Front Page OR the Blog page

You can switch between these modes at any time to change how your display rules are applied.


Display Conditions are one of the most powerful features in Template Parts. Combined with Placement and Container Settings, they give you full control over when and where your content appears — without any custom code.