Skip to content

Commit 3d8efc2

Browse files
committed
Move comment section
1 parent a77b87a commit 3d8efc2

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

themes/osi/single.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@
2525

2626
get_template_part( 'template-parts/content', get_post_type() );
2727

28-
//If comments are open or we have at least one comment, load up the comment template.
29-
if ( 'board-member' === get_post_type() || 'post' === get_post_type() ) :
30-
if ( comments_open() || get_comments_number() ) :
31-
comments_template();
32-
endif;
33-
endif;
34-
3528
endwhile; // End of the loop.
3629
?>
3730
</section>

themes/osi/template-parts/content.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939

4040
<?php the_content(); ?>
4141
</div><!-- .entry-content -->
42+
<?php
43+
//If comments are open or we have at least one comment, load up the comment template.
44+
if ( 'board-member' === get_post_type() || 'post' === get_post_type() ) :
45+
if ( comments_open() || get_comments_number() ) :
46+
comments_template();
47+
endif;
48+
endif;
49+
?>
4250
<section id="pre-footer">
4351
<?php get_template_part( 'template-parts/nav-postname-pager' ); ?>
4452
</section>

0 commit comments

Comments
 (0)