🐞 fix: Update header/hero to swap based on service page children
This commit is contained in:
+7
-3
@@ -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;
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user