🐞 fix: Update header/hero to swap based on service page children
Deploy to Dreamhost (dev) / build (push) Successful in 34s
Sync TODOs with Issues / sync_todos (push) Successful in 6s

This commit is contained in:
Keith Solomon
2026-07-05 10:36:27 -05:00
parent 8caa787ff6
commit 02f9999621
6 changed files with 213 additions and 90 deletions
+7 -3
View File
@@ -48,6 +48,10 @@ $showHero = isServicesDescendant() && get_field( 'hero_style' ) === 'default';
</header>
<main id="maincontent" class="overflow-hidden min-h-[78dvh]">
<?php if ( $showHero ) : ?>
<?php get_template_part( 'views/partials/page-hero' ); ?>
<?php endif; ?>
<?php
if ( $showHero ) :
get_template_part( 'views/partials/page-hero-services' );
else :
get_template_part( 'views/partials/page-hero' );
endif;
?>