Render page-intro partial between hero and body in page.php

This commit is contained in:
Keith Solomon
2026-07-01 10:16:15 -05:00
parent ffdf79ae01
commit a8affd474d
+6
View File
@@ -24,6 +24,12 @@ if ( hasSidebar() ) {
<article class="<?php echo esc_attr( $classes ); ?>"> <article class="<?php echo esc_attr( $classes ); ?>">
<div class="entry-content <?php echo esc_attr( $clsEntry ); ?>"> <div class="entry-content <?php echo esc_attr( $clsEntry ); ?>">
<?php <?php
// Centered intro section beneath the hero (rendered by header.php).
if ( get_field( 'intro' ) ) {
get_template_part( 'views/partials/page-intro' );
}
// Page body content
if ( have_posts() ) { if ( have_posts() ) {
while ( have_posts() ) { while ( have_posts() ) {
the_post(); the_post();