Render page-intro partial between hero and body in page.php
This commit is contained in:
@@ -24,6 +24,12 @@ if ( hasSidebar() ) {
|
||||
<article class="<?php echo esc_attr( $classes ); ?>">
|
||||
<div class="entry-content <?php echo esc_attr( $clsEntry ); ?>">
|
||||
<?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() ) {
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
|
||||
Reference in New Issue
Block a user