RevealTheme logo
Back to Blog

WordPress And The Sticky Header Question

WordPress And The Sticky Header Question
The RevealTheme Team

By

··3 min read

Sticky headers stay visible as users scroll. The persistent navigation is convenient but takes vertical space, especially on mobile.

The trade-off matters because viewport space is limited. The decision should match the navigation patterns users actually need.

The arguments for sticky

Navigation available at all times. Users don't have to scroll back to find it.

Branding stays visible. The logo and site identity persist.

Quick navigation between sections on long pages.

The arguments against

Vertical space consumed. On mobile especially, the 60-80px sticky header takes meaningful space.

Reading content shifts as the header takes the space. The first viewport of content is partial.

Some users find the persistent element distracting.

The mobile considerations

Mobile viewports are tight. A sticky header takes about 12-15% of vertical space.

For long articles where reading is the value, that space matters. Each page of reading loses 12-15% to navigation.

Some sites make the header shrink on scroll. Visible at top, smaller during reading. The compromise preserves some persistence with less space cost.

The hide-on-scroll pattern

The header hides when scrolling down (reading direction); reappears when scrolling up (looking for navigation).

The pattern preserves space during reading while keeping navigation accessible when wanted. Implementation through JavaScript on scroll events.

The honest framing

Sticky headers are a design decision with real trade-offs. The right choice depends on the user task and the device.

For reading-focused content sites, hide-on-scroll often works better than always-sticky. For navigation-heavy applications, always-sticky fits better.