Mô tả
Jamie’s Header Effects makes your block theme’s header feel alive. Turn it on, pick an effect, and your header follows the visitor down the page — gracefully.
Chameleon — the headline feature. As you scroll, the header samples the colour of the section underneath it and recolours itself to match, automatically switching its text between light and dark for contrast. Scroll from a navy hero into a cream section into a forest-green footer and the header changes with you. No configuration per section; it just works.
Frosted blur — a translucent, blurred header that lets the page show through, like frosted glass. Set the colour, opacity and blur amount.
Solid colour — a classic sticky header with your chosen colour and opacity, and a soft shadow when stuck.
Hide on scroll down, reveal on scroll up — the header slips away while you read and comes back the moment you scroll up. Tune the sensitivity and delay.
Transparent overlay header — float the header over your first section for the full-bleed hero look, with no layout jump.
Everything else you’d expect is here too: an automatic admin-bar offset, z-index control, a “push content down” option, a mobile breakpoint to disable the effect on small screens, and the ability to switch it off for particular post types or templates. Transitions respect prefers-reduced-motion.
It’s theme-agnostic (it finds your header automatically, with an override selector for unusual themes), accessible, and ships no jQuery.
Settings: Appearance Header Effects.
Ảnh màn hình



Cài đặt
- Upload the
jamies-header-effectsfolder to/wp-content/plugins/, or install it from the Plugins screen. - Activate the plugin.
- Go to Appearance Header Effects, tick Enable sticky header, choose a background style (try Chameleon), and save.
Hỏi đáp
-
Which themes does it work with?
-
Any block theme. By default it looks for the header template part (
header.wp-block-template-part, then the firstheaderinside the site wrapper). If your theme is unusual, enter your own CSS selector in the Header selector field. -
How does Chameleon decide the colour?
-
As you scroll, it looks at the section directly beneath the header, finds that section’s background colour (including Cover blocks and their overlays), and applies it to the header at your chosen opacity. It then picks black or white text based on the colour’s brightness so the header stays readable. Sections with no solid background (an image-only section, say) make the header transparent.
-
Does it work with the WordPress admin bar?
-
Yes. Offset for admin bar (on by default) positions the sticky header just below the admin bar when you’re logged in.
-
Can I turn it off on mobile, or on certain pages?
-
Yes. Set a mobile breakpoint to disable it on small screens, and untick it for specific post types or templates (home, front page, blog, single, page, archive, 404, search) under Disable on.
-
What’s the difference between “Push content down” and “Overlay page content”?
-
“Push content down” adds space below the header so content starts beneath it. “Overlay page content” does the opposite: it floats the header over the first section, the classic transparent-hero look. If both are ticked, overlay wins.
-
Does it respect reduced-motion preferences?
-
Yes. If a visitor has asked their system to reduce motion, transitions are disabled and the hide-on-scroll animation is turned off.
Đánh giá
Không có đánh giá nào cho plugin này.
Người đóng góp & Lập trình viên
“Jamie’s Header Effects” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “Jamie’s Header Effects” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
1.0.0
- Initial release: Chameleon, frosted blur and solid sticky backgrounds; hide on scroll down / reveal on scroll up; transparent overlay and push-content-down layouts; admin-bar offset; mobile breakpoint; disable by post type or template; reduced-motion support.
