Free cookie consent management tool by TermsFeed Generator
All Products & Integrations

jalpi page builder docs

Header Templates

Header templates replace your active WordPress theme's header with a fully customized, responsive Jalpi Page Builder layout that renders automatically at the top of your site.

Active Feature Theme Builder wp_body_open
2 min read Β· November 2026

Header Overview#

In traditional WordPress themes, editing the header requires modifying PHP files (header.php) or using restrictive theme customizer panels. With the Jalpi Theme Builder, your header is an editable visual layout that you can design with complete creative freedom.

Headers are registered under the location slug header. When active, Jalpi suppresses the active theme's native header and injects your visual layout at the very top of the page via the core WordPress wp_body_open action hook.

Creating Header Templates#

  1. Navigate to Jalpi Page Builder β†’ Theme Builder in your WordPress admin.
  2. Select Header from the left navigation.
  3. Click Add Template, enter a title (e.g. "Main Site Header"), and click Create & Edit.
  4. The visual editor opens. Add a section, configure your layout columns, and insert your header widgets.
  5. Click Publish. Return to the dashboard and configure your Display Conditions (e.g. Entire Site).
  6. Click Activate to make the header live.
Pulse Header Template Preview
Figure: Bundled responsive Header template layout from the Jalpi Theme Builder library.

Recommended Header Widgets#

  • Site Logo: Displays your brand logo with automatic home page permalink linking.
  • Navigation Menu: Renders a WordPress menu with dropdown menus, mobile hamburger toggle, and responsive drawer navigation.
  • Button: Adds a high-converting call-to-action button (e.g. "Contact Us" or "Get Started").
  • Search Icon / Bar: Provides an instant search input or modal launcher.

Sticky & Transparent Headers#

Create modern header interactions using Section Style controls:

  • Sticky Header: Set the section's position to sticky with top: 0. When users scroll down the page, the header remains pinned to the viewport ceiling.
  • Transparent Header: Set the header section's background to transparent and set its position to absolute (or fixed). The hero section beneath it will display through the navigation bar.

Assigning Header Conditions#

You can create multiple distinct headers for different sections of your website:

  • Global Default Header: Condition: Entire Site (Priority: 10).
  • Landing Page Header: Condition: Post ID: 120 with clean logo-only layout (Priority: 1).
  • Blog Header: Condition: All Archives with category breadcrumbs (Priority: 5).

Developer Notes & Hooks#

Header styles are compiled early during wp_enqueue_scripts at priority 5, ensuring critical header CSS is output in the document <head> before the DOM is rendered to prevent flash-of-unstyled-content (FOUC).

php (Hooking Header Output)
// Header output hook in class-jalpi-theme-builder.php:
add_action( 'wp_body_open', [ $this, 'render_header_template' ] );

Cross-reference the Theme Builder Overview and Display Conditions Guide for full details.