david
pushed to fse-migration at david/daw
92548898a4 phase 3 (branch): foundational FSE templates (no flip yet)
Add templates/{page,single,archive,search,404}.html — compose the header/footer
parts + standard blocks (post-title/post-content, query loop, comments), modeled
on the srh reference but simplified to daw's aesthetic. Correct footer part per
template (single/search/page -> footer; archive/404 -> footer-home).
Deliberately NO templates/index.html yet, so wp_is_block_theme() stays false and
the site remains classic/unflipped. All five parse with no unregistered blocks.
Next: bespoke page templates, then add index.html to flip + test.
e0d1eb21e2 phase 3: header -> FSE template part (bridged)
Same pattern as the footers. Header chrome (navbar + offcanvas nav) now lives in
parts/header.html; header.php keeps only the document <head> + wp_head() + <body>
open (can't live in a block part) then calls block_template_part('header').
- Nav links -> root-relative (domain-agnostic).
- theme.json registers the header part (area "header").
- Verified now/contact/about/studio render header + offcanvas + Work, 200, no errors;
bespoke front-page.php unaffected.
All shared chrome (header + both footers) is now in parts/, live via the bridge and
ready for the FSE flip.
1b3c4b5e88 phase 3: footers -> FSE template parts (bridged)
Migrate both footer variations to block template parts, kept live in the classic
theme via block_template_part():
- parts/footer.html (minimal) + parts/footer-home.html (full nav + social + cookie),
block markup in wp:html blocks preserving the Bootstrap structure + JS hooks.
- footer.php / footer-home.php reduced to shims: block_template_part(...); wp_footer();
+ </body></html>.
- theme.json declares both parts (area "footer").
- home_url() links -> root-relative (/about ...): parts can't run PHP, and it's
domain-agnostic ahead of the davidawindham -> davidwindham move.
block_template_part() resolves parts/*.html in a classic theme (verified), so these
render now AND are wired for the FSE flip. Establishes the migration pattern.
d7c657cacd phase 3: consolidate to one header, loader opt-in
Retire header-home.php (the nested Font Awesome sidebar/offcanvas nav). About +
Studio now use the single header.php (flat Bootstrap Icons horizontal nav) like
the rest of the site — the full navigation lives in the footer now, so the header
only needs the minimal nav.
Preloader preserved on those two pages via get_template_part('loader') in their
page templates (loader.php is self-contained: fixed overlay + own vanilla hide-JS).
header.php is now the theme's only header.
Orphaned (left for a later CSS-trim pass): the #nav / #nav.affix rules in style.css.
5716b79e3b note: /work nav + domain migration plan
1 week ago