Session Overview
Scheduled audit of aguiarinjurylawyers.com pages and posts for missing featured images and hero backgrounds. The goal was to identify any pages shipping without a hero image, surface broken or empty hero references, and produce replacement recommendations pulled from the existing media library.
The task ran autonomously from a scheduled trigger. Sam was not present to answer questions, so reasonable defaults were applied: no destructive actions, no image uploads to the live site, and a report-first output.
What Was Accomplished
Metadata audit (WordPress REST API)
Pulled metadata for all published content:
- 302 pages and 205 posts (507 total items)
- Confirmed every item has a
featured_media ID set (zero orphaned featured images at the metadata level)
- Validated all 341 unique featured media IDs against the
/wp-json/wp/v2/media endpoint: every ID resolved to a valid image record
- Ran HTTP HEAD checks against 229 unique in-content hero image URLs: all 229 returned 200 OK
Content audit (SA template hero detection)
Parsed the rendered HTML content for every item and looked inside <div class="sa-hero"> for an <img src> tag (the SA template uses an absolutely-positioned img, not a CSS background). Found:
- 458 items use the SA hero wrapper
- 24 items render the hero div with no
<img> inside (the real miss)
- 24 items have neither SA hero nor any in-content image (most of those are utility pages like Privacy Policy, Terms, Sitemap, Thank You, redirect pages, so expected)
Replacement recommendations
For each of the 24 pages missing a hero image, searched the WordPress media library for topic-matching assets. Results:
- 11 pages have a direct match already in the library (location-specific heroes like Georgetown, Versailles, Independence, Mount Washington, Ashland, plus topic matches like rental car accident, rollover, Forbes, Louisville office building)
- 3 pages are judgment calls (Blog archive, Resources index, Negligent Training)
- 10 pages need a new asset generated or sourced (speeding, rain, parking lot, drowsy driving, diminished value, bad weather, Harrodsburg, trial exhibits, PI marketing, AI in truck accidents)