WP Manifestindependent plugin directory
manifest / themes / wp-header-height

Header Height WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

WordPress plugin that exposes the real sticky header height as CSS custom properties for full-height heroes, banners and layouts.

★ 2stars
v1.1.1latest · 5mo ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/guisfus/wp-header-height/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Small WordPress plugin that exposes the real sticky header height as CSS custom properties, useful for full-height hero sections, banners and layouts that need to account for a fixed or sticky header.

CSS Variables

The plugin writes these variables to the root element:

:root {
  --header-height: 80px;
}

Use --header-height in your theme or layout CSS.

If the configured header is not found, the plugin writes 0px so layouts do not keep a stale height from a previous state.

Default Selector

By default, the plugin measures:

.sticky-header-custom

Example markup:

<header class="sticky-header-custom">...</header>

Usage Example

.hero-full-height {
  min-height: calc(100vh - var(--header-height, 0px));
}

Custom Header Selector

You can change the selector with a WordPress filter:

add_filter( 'header_height_selector', function () {
    return '#site-header';
} );

Requirements

  • WordPress 5.8 or higher
  • PHP 7.4 or higher

Installation

The GitHub repository uses the wp- prefix only to identify it as a WordPress plugin repository. When installing the plugin in WordPress, use the plugin folder name without the wp- prefix.

Correct plugin folder:

wp-content/plugins/header-height/

Correct ZIP structure:

header-height.zip
`-- header-height/
    |-- header-height.php
    |-- assets/
    |-- README.md
    |-- readme.txt
    `-- LICENSE

Do not install it as:

wp-content/plugins/wp-header-height/

Backend installation:

  1. Create a ZIP with header-height/ as the root folder.
  2. In WordPress, go to Plugins > Add New > Upload Plugin.
  3. Upload header-height.zip.
  4. Activate Header Height.

Manual installation:

  1. Upload the header-height folder to wp-content/plugins/.
  2. Activate Header Height from the WordPress plugins screen.

Security

  • Runs only on the frontend.
  • Exits directly if loaded outside WordPress.
  • Uses WordPress enqueue APIs.
  • Encodes frontend configuration with wp_json_encode().
  • Sanitizes the selector passed through the customization filter.
  • Does not store options, process form submissions, create REST endpoints, or expose AJAX actions.

Frontend Footprint

  • Loads one script: assets/header-height.js.
  • Exposes one config object before the script runs: window.HeaderHeightConfig.
  • Writes the --header-height CSS custom property on :root.

License

Header Height is licensed under GPL-2.0-or-later. See the LICENSE file for details.

Releases

3 releases.

Tag
Published
v1.1.1 latest
Apr 30, 2026 5mo ago
Apr 30, 2026 5mo ago
Apr 29, 2026 5mo ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Header Height 1.1.1 · audited by WP Registry

No security issues found.

Audited release
1.1.1
Findings
none
Worst severity
—
Content hash
90be1570dbfe4fc8c8223846…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.