🐞 fix: Make Services pages show the correct hero
Deploy to Dreamhost (dev) / build (push) Successful in 33s
Sync TODOs with Issues / sync_todos (push) Successful in 6s

This commit is contained in:
Keith Solomon
2026-07-05 13:28:25 -05:00
parent 36cf891659
commit d4a3e0a6c8
2 changed files with 2 additions and 62 deletions
+2 -1
View File
@@ -16,8 +16,9 @@ $headerLogo = getFieldValue( 'header.header_logo.url' ) ? getFieldValue( 'header
// The inner-page hero renders only on the Services page, its direct children,
// and its grandchildren. All other views (blog index, archives, single posts,
// search, 404) render without the hero.
$showHero = isServicesDescendant() && get_field( 'hero_style' ) === 'default';
$services = get_page_by_path( 'services' )->ID;
$showHero = $post->post_parent === $services ? true : false;
?>
<!DOCTYPE html>