v0.1.0
Added
- Transparent-over-hero mode for Ollie's sticky header: transparent at the top of the page, fading to the header group's own background colour once scrolled past 20px and solid whenever a menu inside the header is open. The plugin ships no styling of its own – the solid state is whatever background you set on the group block in the Site Editor.
- A workaround for Ollie Pro leaving
--sticky-full-offsetunset unless a Top Offset is configured, which left a logged-in visitor a strip of header stuck to the top of the screen on viewports of 600px and below – where the admin bar stops being fixed and no longer hides it. - A workaround for a specificity bug in the Ollie theme: its own reset that should drop the sticky header's top offset to zero on narrow screens (
@media (max-width: 600px) { … top: 0 }) is outweighed by its unscoped base rule, so it never applies. On viewports of 600px and below – where core makes the admin barabsoluteand it scrolls away with the page – a logged-in visitor was left a 46px strip of empty space above the header once the bar had scrolled out. Reinstated in pure CSS with a selector heavy enough to win, for solid sticky headers; the transparent header, beingfixed, is handled separately (below). - The same flush-to-top behaviour for the transparent header on viewports of 600px and below. Being
fixed(to overlay the hero) it can't tuck under the admin bar in the flow like the solid header, so a small script – loaded only for logged-in visitors, and working only below 600px – tracks the admin bar's live bottom edge and feeds it to the header's top offset. The header tucks under the bar while it is visible and sits flush against the top of the viewport the moment the bar scrolls away. - A workaround for Ollie Pro transitioning only
transform, which made the background flip in a single frame instead of fading in step with the slide. Requires Plugins: ollie-proheader, so WordPress refuses to activate the plugin without Ollie Pro and deactivates it if Ollie Pro goes away.- A silent guard that skips the header feature when the active theme is not Ollie (or one of its child themes). It stays quiet on purpose: Ollie Pro already reports a wrong theme, and a second notice would only repeat it.
- A PHP version guard in the main plugin file, as a second line of defence for installs that load the plugin outside the normal activation path.
- Self-updating from the project's GitHub releases: the plugin appears under Dashboard → Updates like any other, checking the repository named by its own
Plugin URIheader at most once every six hours. A release is only offered when it carries a ZIP asset served from GitHub's own download hosts, so a tampered header cannot redirect the update installer at an attacker's package. Update checks run under every theme, unlike the header feature – a site parked on another theme must not rot on an old version. build-release-zip.sh, which builds a release zip containing only runtime files, and can create or update the GitHub release and upload the asset. The asset name carries no version segment, keeping thelatest/downloadURL stable.
Full changelog: https://github.com/Kntnt/kntnt-transparent-header-ollie-pro/blob/v0.1.0/CHANGELOG.md