Session Overview

Sam asked Perplexity Computer to fix formatting issues on the wrongful death post at /louisville-wrongful-death-attorneys/. The specific instructions were: correct the formatting, remove the subtext below H1, and make sure the sidebar is in. After completing that fix, Sam asked for a batch audit of 9 similar pages to see if they had the same problems.

The fixes were comprehensive and successful. The same class of issues exists on 7 of the remaining 9 pages audited. Those 7 pages still need the same treatment.


What Was Fixed: /louisville-wrongful-death-attorneys/ (Post ID 4239)

This was a WordPress post (not a page). It uses a custom .sa-wd-wrapper namespace instead of .sa-page-wrapper, but otherwise follows the SA template structure.

Issues Found and Fixed

Hero subtext removed. The hero section had a <p class="sa-hero-sub"> paragraph below the H1 reading "We've recovered $12M+ in wrongful death cases. Know your family's legal options, no cost, no obligation. Call 502-888-8888." Per Sam's instruction and site rules, this was removed entirely. The H1 now stands alone.

Sidebar replaced with Option A. The old sidebar had three problems: (1) a flat #0B212D background on the CTA box instead of the Visible Depth gradient; (2) the phone number displayed as a plain text link using the deprecated .sa-phone-link class instead of a CALL NOW button with SVG phone icon; (3) a .sa-sidebar-guarantee block (Bigger Share Guarantee) which is deprecated. The entire <aside> was replaced with the canonical Sidebar Option A HTML from the skill, including: Visible Depth gradient CTA, orange H3 "Get Back To Living / Your Best Life", CALL NOW button with SVG icon, no guarantee block, standard 7-item trust list with &#10003; checkmarks, heading "Why Kentucky Chooses Sam Aguiar".

CTA banner added. There was no .sa-cta-banner at the bottom of the page. Added the standard banner: "HURT IN A CAR? CALL SAM AGUIAR!" with orange "CALL SAM AGUIAR!" and subtext "You focus on getting better. We'll handle everything else."

Broken CSS selectors repaired. The <style> block had three instances of corrupted CSS where .sa-wd-wrapper was repeated 3-4 times on separate lines before the actual selector, e.g. .sa-wd-wrapper\n .sa-wd-wrapper\n .sa-wd-wrapper\n .sa-wd-wrapper .sa-content-grid. These were causing the two-column grid and mobile layout to break. All three were collapsed to single correct selectors.

Deprecated colors replaced. All border: 1px solid #e5e9ec instances were changed to border: 1px solid #0b212d. The callout box gradient was updated from linear-gradient(135deg, #0B212D 0%, #142130 100%) to the Visible Depth standard linear-gradient(0deg, #000000 0%, #0B212D 100%).

Trust bar em dash fixed. "1,000+ Five-Star Reviews — 4.9/5" was corrected to "1,000+ Five-Star Reviews, 4.9/5".

Stray tags removed. Two extra </div> closing tags (div balance was -2) and an orphaned </script> tag at the end of the content were removed.

Nested wp:html markers removed. The content had a "Related Resources" section wrapped in its own <!-- wp:html --> / <!-- /wp:html --> markers inside the outer wp:html block. The inner markers were stripped while keeping the HTML content.

How It Was Done

Used the WordPress REST API (posts endpoint, not pages) to fetch raw content via context=edit. Applied all fixes via Python string replacement and regex in a single script. Verified div balance (27/27), confirmed all issue flags resolved, then pushed back via POST to /wp-json/wp/v2/posts/4239 with status: publish. Ran Playwright visual QA at 1280px desktop and 390px mobile. Both passed clean.

Key Technical Note

This content is a WordPress POST (ID 4239), not a page. The slug louisville-wrongful-death-attorneys only appears in the /wp-json/wp/v2/posts/ endpoint, not /wp-json/wp/v2/pages/. The page wrapper class is .sa-wd-wrapper (not .sa-page-wrapper). Everything else follows the standard SA template.