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
  • 1. Go to Template Parts
  • 2. Create the Section
  • 3. Open Template Part Settings
  • 4. Set the Type
  • 5. Set Display Conditions
  • 6. Choose Placement
  • 7. Container Settings
  • 8. Publish
  • Optional: Insert the Section Manually
  1. Template Parts
  2. Creating Template Parts

Creating a Section

PreviousCreating Template PartsNextCreating a Section with Elementor

Last updated 9 days ago

Sections let you insert custom content into specific parts of your site — like above the header, below the content, or inside WooCommerce product pages. These are placed using WordPress and plugin hook locations, and you can decide exactly when and where they appear using display conditions.

In this example, we’ll create a banner that displays after the header across the entire site.


1. Go to Template Parts

In your WordPress dashboard, go to Kalium → Template Parts.

Switch to the Sections tab at the top, then click Add New in the top-left corner.


2. Create the Section

Enter a name for your section. For example: 30% Off Summer Sale Banner

Now add your content in the editor. This can be anything — a short message, a call-to-action, a promotional banner, or even a more complex layout with images and buttons.

In this example, we’ll use the default WordPress editor (Gutenberg) to build the section. If you prefer using Elementor or WPBakery, please check the respective articles:


3. Open Template Part Settings

Click the Kalium icon in the top-right corner to open the Template Part Settings panel.


4. Set the Type

Make sure the Type is set to Section. If it's not, switch it manually — otherwise the section may not behave as expected.

For a complete overview of all types and how to use them, see the article below:


5. Set Display Conditions

Click Add Condition to choose where this section should appear.

For this example, we want the banner to show across the entire site:

  • Set General Page → Is → Entire Site

You can always add more than one condition and combine them using AND or OR logical operators to create more advanced specific rules.

For a complete overview of all condition types and how to use them, see the article below:


6. Choose Placement

This setting is available only for Sections.

Click Add New Location to choose where the section appears on the page.

You can:

  • Select from a list of predefined hook locations

  • Search within the list

  • Or click the target icon to open a visual popup where you can select the exact area

For this example, choose Header After.

Want to see the same hook locations as shown in the popup — but live on your site? Just add ?view-theme-hooks=1 to the end of any page URL. This will display all available hook positions directly on the front end, exactly like the visual overlay in the Placement popup above. It's a helpful tool for advanced placement and testing.

Leave the Priority set to 10 unless you need to control the display order of multiple sections targeting the same location.

Sections with lower priority numbers appear first. For example, a section with priority 5 will show before one with priority 10 in the same hook location.

This is especially useful when you're stacking multiple sections in the same area (e.g. adding a notice above a banner).


7. Container Settings

Under Container Settings, you can fine-tune how your section is wrapped and displayed:

  • Wrap with Container – This is enabled by default. Turn it off if you want your content to stretch full-width or appear without wrapper elements.

  • Visibility – Choose whether the section appears on desktop, tablet, mobile — or all.

  • Container Classes – You can enter a class like container if you want the content to follow your site’s layout width. For this example, leave it blank.

  • Tag Name – You can optionally set a semantic HTML tag like <aside> or <section>. By default, this is set to <div>, so you can leave it empty.


8. Publish

Once everything is configured, click Publish.

Your section will now appear after the header on every page of your site, based on the conditions and placement you selected, as you can see below:


Optional: Insert the Section Manually

In addition to automatic placement, Kalium lets you manually insert Template Part sections anywhere inside a page or post using the default editor.

This is especially useful when you want to show a section in a very specific spot, without relying on automatic placement rules.

It only applies to Sections, since they’re designed to be embedded within content. Other types like Headers, Footers, and Pages replace parts of your site and can’t be inserted manually.

Below, we’ll explain how to insert sections manually using each method.

Why use this?

  • Visual placement – Drop the section exactly where you want in your design

  • Simple selection – Choose any existing section from the dropdown

  • No display rules needed – Skip conditions and hook settings if you want manual control

To insert a section manually:

  1. Edit your page or post in the default WordPress editor.

  2. Start by typing / or click the “+” icon to add a new block.

  3. Search for Content Section and select the block.

  4. In the block settings, choose the section you want to display from the dropdown.

You’ll also find options to Change Section, Check Conditions, and Edit Template. Clicking Edit Template will open the template in a new tab so you can edit it directly.

Check Conditions lets you control where and when this section appears, for example, only on specific pages or for certain user roles.


Optional: Shortcode Option

If you prefer, you can insert any Template Part Section using a shortcode.

Shortcode format:

[kalium_section id="123"]

You don’t need to look up the ID manually — the shortcode is already visible next to each Template Part in the Template Parts dashboard. Just copy and paste it wherever you need.

Controlling Display Conditions

You can control whether the shortcode respects the section’s display conditions by adding the check_conditions parameter:

  • check_conditions="yes" – The section will only appear if its display conditions are met

  • check_conditions="no" – The section will appear unconditionally, wherever the shortcode is placed

Example:

[kalium_section id="123" check_conditions="no"]

This is useful if you're placing the section inside:

  • Widgets

  • Custom HTML areas

  • Third-party shortcode-compatible plugins

Creating a Section with Elementor
Creating a Section with WPBakery
Type
Display Conditions