Skip to content

Keep sticky headers below the admin bar up to 600px - #290

Merged
amjadr360 merged 1 commit into
mainfrom
fix/2388-sticky-header-phone-offset
Dec 1, 2026
Merged

amjadr360 merged 1 commit into
mainfrom
fix/2388-sticky-header-phone-offset

Conversation

@amjadr360

@amjadr360 amjadr360 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Between 601px and 782px wide (a small tablet, or a narrow window), sticky headers slid under the WordPress admin bar for logged-in users once they scrolled. WordPress keeps that bar pinned down to 601px and only lets it scroll away at 600px and below, but the theme removed the header's offset from 782px down. This moves both resets to 600px so they match WordPress.

  • Checked on the Catalina Skyline, Atlas Beacon and Ceadar Peak headers, with and without a full-screen hero, at 390px, 700px and 1280px. Before, 30 to 46px of the header sat under the admin bar at 700px. After, none. Phones, desktops and logged-out visitors see no change.

WordPress keeps its admin bar pinned down to 601px and only lets it
scroll away at 600px and below. The sticky header rules reset their
offset at 782px instead, so between 601px and 782px the header slid
under the 46px bar: the plain sticky header lost 46px, the floating
pill lost 30px once scrolled. Measured against core's admin-bar.css.

Moving both resets to 600px matches core. Nothing changes at 600px and
below or above 782px.

The Extendify plugin's own bars (the Simple Toolbar and the closed-agent
bar) never scrolled away, which is why the header hid under them on
phones too (company-product#2388). Those bars now scroll away at 600px
like core's in a companion extendify-sdk change, so the theme only has
to follow WordPress and needs no plugin-specific offset.
@amjadr360
amjadr360 marked this pull request as ready for review December 1, 2026 20:30
@amjadr360 amjadr360 closed this Dec 1, 2026
@amjadr360 amjadr360 reopened this Dec 1, 2026
@amjadr360
amjadr360 merged commit 4f13a4b into main Dec 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant