Dynamic Header & Navigation for Block Themes

By Hans-Gerd Gerhards

★ 5.0/5 (3 ratings)200+ active installationsVersion 1.6.0

Animated shrinking header, responsive shrinking logo, custom breakpoints and off-canvas navigation – navigation solution for block themes.

Description

Options:

  • Set height for header
  • Set height for shrinking header
  • Set Logo shrinking factor
  • Set shrinked Logo left (added in Version 1.3)
  • Set Animation duration (seconds) for shrinking header
  • Option to set a breakpoint for navigation (added in Version 1.1)
  • Option to set Off-Canvas (added in Version 1.2)
  • Option for the speed of the Off-Canvas fade-in (added in Version 1.3.1)
  • Option to disable inner spacing (padding) in header (added in Version 1.4)
  • Option to enable Text below mobile Icon and display larger mobile menu Icon (Hamburger) – better for accessibility reasons (added in Version 1.4)
  • Option to Label Text (added in Version 1.4)
  • Option: Menu does not appear as sticky on mobile devices – may be better for accessibility reasons. (added in Version 1.4.1)
  • Option: Above the header, there may be a margin set by the theme. This margin can be disabled if desired. (added in Version 1.5.1)
  • Option: Frosted glass header. (added in Version 1.6.0)
  • Option: Hide header on scroll down, show header on scroll up. (added in Version 1.6.0)

Dynamic Header & Navigation for Block Themes (Previous name of the plugin: Shrinking Logo Sticky Header) is a lightweight WordPress plugin developed specifically as a navigation solution for most Block Themes.
It adds a modern sticky header with smooth, animated shrinking effects for both the header and the site logo.
As users scroll down the page, the header and logo automatically reduce in size, maximizing on-screen space and keeping navigation easily accessible without disrupting the browsing experience.

The plugin allows you to individually configure the heights for the header and logo in both their normal and shrunken states, giving you full control over your site’s appearance.
These settings can be easily adjusted to match your branding or design preferences.

One of the key advantages of Dynamic Header & Navigation for Block Themes is its simplicity:
After activation, the sticky and shrinking effects work in principle immediately – no additional setup or configuration is required.
This makes it ideal for users who want a professional, dynamic header effect without dealing with complex options or custom code.

Videos

This video demonstrates general settings:

This video demonstrates the new options in version 1.6.0 of the plugin “Dynamic Header & Navigation for Block Themes”, such as the “Frosted glass header” option and the “Hide header when scrolling down, show header when scrolling up” option:

How can I locate the “slug” for the background-color in the header div?
This video shows how to find the slug for the header div’s background-color in a block theme if the “Frosted Glass” option doesn’t produce the desired effect.

Translations

Installation

  1. Go to Plugins in the Admin menu
  2. Click on the button Add new
  3. Search for shrinking Logo Sticky Header and click ‘Install Now’ or click on the upload link to upload shrinking-logo-sticky-header.zip
  4. Click on Activate plugin

FAQ

Is it possible to use this plugin for all Block Themes?

Tested with Twenty Twenty-Three, Twenty Twenty-Four, Twenty Twenty-Five, Ollie, Circles WP.
If the plugin does not work with your block theme, please write to the support forum. I will then see what I can do.

Why is the sticky header transparent and how can I change this?

The template part for the header is initially transparent in many block themes.
For this reason, the background colour of the outer group block for the header must be changed to a colour such as white, for example.
If the header has a background colour, then the header ‘covers’ the content when scrolling. See also the screenshot. This is the recommended procedure.
If the recommended option described above does not work for you, you can also set the background colour for the header automatically via the settings.

The header with the navigation is too high on mobile devices and therefore takes up too much space on the display. Can this be fixed?

Yes, no problem at all: From version 1.4.1 onwards, you can optionally deactivate the sticky option on mobile devices. Please see setup of the Plugin.

Why doesn’t the Frosted Glass feature work on mobile devices?

This has to do with an issue related to the off-canvas option, which I unfortunately haven’t been able to resolve yet. I’ll keep working on it.

Is the plugin suitable for accessible websites?

Yes, in principle it is, but features such as “Frosted Glass” or “Hide header on scroll down, show header on scroll up” should either not be used at all or, at the very least, used with caution.

The spacing above and below changes when you scroll down (shrink). How can this be changed?

If you set the values for the top and bottom paddings to 0 in the settings for the header (and possibly for all groups contained in the header),
the inner margins will be controlled by the plugin, and the margins (paddings) should be set correctly.
You can find the settings in the header template section (see Appearance -> Editor -> Patterns -> Header)

Is it possible to use this plugin also for classical Themes (e. g. Astra, OceanWP, GeneratePress)?

Classic themes sometimes offer such an option, but possibly only in a paid version. This plugin can only be used with block themes.

Can you show me examples that demonstrate these effects?

Yes, with pleasure:
https://haurand.com/ and https://space4.yd-sgs.de/

Is there any documentation and further information about the plugin?

Yes, of course:
* (English): https://haurand.com/plugin-shrinking-logo-sticky-header/
* (German): https://haurand.com/das-plugin-shrinking-logo-sticky-header/

Who are you?

I’am Hans-Gerd.
My work on this plugin will be sponsored by https://haurand.com/

How can I report security bugs?

You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team helps validate, triage and handle any security vulnerabilities. Report a security vulnerability.

Screenshots

Changelog

1.6.0: October 27, 2026

  • Added Option: Frosted glass header.
  • Added Option: Hide header on scroll down, show header on scroll up.
  • Added: “Settings” link on the Plugins overview page for quick access to the plugin settings
  • Fix: When the breakpoint for the mobile menu was set to exactly 599px and the text was set to “Menu” the text was displayed next to the mobile menu icon instead of below it.
  • Fix some minor issues
  • Plugin Check: No errors, no warnings (“Checks complete. No errors found.”)

1.5.1: August 14, 2026

  • Added Option: Above the header, there may be a margin set by the theme. TThis margin can be disabled if desired.
  • Enhancement: Improved Control of the Anchors
  • Added FAQ regarding spacing in the header.
  • Plugin Check: No errors, no warnings (“Checks complete. No errors found.”)
  • Tested up to WordPress 7.1

1.5: January 4, 2026

  • Fix: Flickering in header when scrolling up in most cases completely prevented (Code improvements)
  • Fix: Language Files corrected – prevent direct access
  • Plugin Check: No errors, no warnings

1.4.1: November 20, 2025

  • Added Option: Menu does not appear as sticky on mobile devices – may be better for accessibility reasons
  • Fix: ID in form field corrected
  • Tested up to WordPress 6.9

1.4: September 10, 2025

  • Added: Option to disable inner spacing (padding) in header
  • Added: Option to enable Text below mobile Icon and display larger mobile menu Icon (Hamburger) – better for accessibility reasons
  • Enhancement: Height and width of mobile icon (SVG) changed to 44px (AAA) when the above option is used
  • Added: Option to Label Text below mobile Icon
  • Enhancements: Explanations and Design in the settings cleaned up

1.3.2: August 1, 2025

  • Fix: Anchors are now controlled at the correct height.
  • Enhancements: Various CSS rules optimised (better support for various block themes for example Ollie)

1.3.1: July 11, 2025

  • Added: Option for the speed of the off-canvas fade-in
  • Added: Show Version of the Plugin in Settings (header)

1.3: June 22, 2025

  • Added: Optional setting of background Color for Header
  • Added: Optional setting to move the shrunk logo to the left
  • Added: Notice for review

1.2: May 22, 2025

  • Added: Optional Off-Canvas-Menu
  • Added: Uninstall: Delete the Options in Table when unistalling this Plugin
  • Renaming the Plugin: “Dynamic Header & Navigation for Block Themes” instead of previous name of the plugin: “Shrinking Logo Sticky Header”
  • Updating the language files
  • Fix: Loading language Files Notice: “This plugin is not properly prepared for localization.”
  • Enhancements: Code improvement (Delete superfluous option)

1.1: May 9, 2025

  • Added: Optional Breakpoint settings
  • Enhancements: Code improvement

1.0: May 1, 2025

  • Enhancement: Security (Additional escaping of the values)
  • Enhancement: Rename the text domain due to Internationalize this plugin
  • Check with Plugin Check: “Check completed. No errors were found.”

0.4.4: April 26, 2025

  • Enhancement: Optimize CSS

0.4.3: April 26, 2025

  • Added: Option for Logo shrinking factor (Value in 0.05 steps)
  • Enhancement: CSS optimised

0.4.2: April 26, 2025

  • Added: Translation option and Translation files in language folder
  • Added: Option for Header Height

0.4.1: April 25, 2025

  • Fix: Issue with inner group

0.4: April 25, 2025

  • Added Settings in Backend for Heigth of Header/Logo, Animation duration

0.3: April 24, 2025

  • Optimized shrinking effect

0.1: April 24, 2025

  • Birthday of shrinking Logo Sticky Header