Blank Canvas: Add support for comments on Pages
This commit is contained in:
parent
c6d8a2df24
commit
d914036c48
1 changed files with 7 additions and 0 deletions
|
@ -20,6 +20,13 @@ get_header();
|
|||
the_post();
|
||||
|
||||
get_template_part( 'template-parts/content/content-singular' );
|
||||
|
||||
if ( true === get_theme_mod( 'show_comments', false ) ) :
|
||||
// If comments are open or we have at least one comment, load up the comment template.
|
||||
if ( comments_open() || get_comments_number() ) {
|
||||
comments_template();
|
||||
}
|
||||
endif;
|
||||
|
||||
endwhile; // End of the loop.
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue