# Brentwood Dev — Adi's work log, 12 June 2026

For Rian — summary of today's changes on brentwooddev (written by Claude on
Adi's behalf at end of day). Everything below is live on
https://brentwooddev.demoing.info and all custom code is in the
**kadence-child theme** (nothing in your plugins was modified).

## 1. ACF Mode — brentwood-migration plugin retired (we discussed this today)

- The plugin's whole schema (staff / livestream / landing / course post
  types, 5 taxonomies, the ACF field groups) now lives in **ACF Pro Local
  JSON**: `wp-content/themes/kadence-child/acf-json/` — full docs in the
  README.md there. Your original `field_bwm_*` keys were reused, so all
  migrated data stayed linked with zero DB changes.
- Plugin is **deactivated but not deleted** (file deletion was on today's
  meeting agenda). UpdraftPlus DB backup was taken before the switch.
- The interim blog gallery renderer moved into the child theme.

## 2. Hero system (new, replaces the old "Brentwood Video Hero" block)

- Heroes are now **template-rendered** from a "Page Hero" field box (pages)
  / "Blog Details" (posts): Hero type = Off, Home Video Hero, Featured
  Image, Gallery, Carousel, Video, or Dual Image — replicating the live
  site's layouts (homepage video, /why-brentwood image+card,
  /admissions/apply carousel, /arts video, blog dual image).
- New **"Show hero card" toggle** for card-less heroes (like live
  /arts/facilities).
- New **"Brentwood Hero Card" block** — the white card as editable
  InnerBlocks (buttons etc. inside), overlapping the media; H1 auto-fills
  from the page title / your Title Override.
- Code: `inc/brentwood-hero.php`, `assets/page-hero.css|js`,
  `blocks/hero-card/`.
- Pages already configured: Home (859), Why Brentwood (905),
  Arts/Facilities (927, carousel without card).

## 3. Single blog post layout

- Matches live: hero spans full width, title block (H1 + date + byline from
  blog_author) and body offset to the right 67% beside the red vertical
  line; Kadence full-width rows unaffected.
  Example: /blogs/brentwood-broadcast-erasing-the-distance/ (set to Dual
  Image like live).

## 4. "Brentwood Blog" block (new)

- Student Blog grid: equal-height cards, AJAX search + numbered pagination
  (no URL change / no scroll jump), category/tag/author filters, offset and
  sticky-post options, column + image-ratio controls.
- Code: `blocks/blog/` + REST endpoint `brentwood/v1/blog-cards`.
- FYI: your bw-request-firewall blocks `?author=` params (good!) — the
  block's REST client uses `author_id` to stay clear of it.

## 5. Smaller items

- **Sub nav**: added a "Breadcrumb" option for sections with too many child
  pages (Athletics uses it — set once on the parent, children inherit).
- **Upload limit**: containers ship with 2 MB; child theme now asserts
  200 MB via `.htaccess` `php_value` (self-healing on container recreation —
  `bw_ensure_upload_limits()` in functions.php). Suggested gateway-template
  fix is in the meeting note.
- **Editor layout**: your bw-dev "Page Title Override" box relocated (from
  child theme code, not the plugin) below the content area, above the Page
  Hero box, for a logical editing order.
- **Page Hero fields added for pages** (hero/gallery fields previously
  existed for posts only).

## Pending (from today's meeting agenda)

1. Delete brentwood-migration plugin files (one command when approved).
2. Copy the 127 Laravel title overrides into Yoast SEO titles + disable the
   bw-dev Title Override module (fixes the menu-label issue at the root).
3. Decision on keeping long headlines as H1s on non-hero pages.

— Adi (assembled by Claude, 2026-06-12 end of day)
