Remove global post/page comments settings

This commit is contained in:
Alexander Agnarson 2018-09-14 17:52:25 +02:00
parent d2238691b5
commit 65e2e95e38
4 changed files with 3 additions and 21 deletions

View file

@ -86,24 +86,6 @@ Kirki::add_field( 'blogrow_theme', array(
'section' => 'general',
'default' => 'on',
) );
// General: Post Comments
Kirki::add_field( 'blogrow_theme', array(
'type' => 'switch',
'settings' => 'post-comments',
'label' => esc_html__( 'Post Comments', 'blogrow' ),
'description' => esc_html__( 'Comments on posts', 'blogrow' ),
'section' => 'general',
'default' => 'on',
) );
// General: Page Comments
Kirki::add_field( 'blogrow_theme', array(
'type' => 'switch',
'settings' => 'page-comments',
'label' => esc_html__( 'Page Comments', 'blogrow' ),
'description' => esc_html__( 'Comments on pages', 'blogrow' ),
'section' => 'general',
'default' => 'off',
) );
// General: Recommended Plugins
Kirki::add_field( 'blogrow_theme', array(
'type' => 'switch',

View file

@ -25,7 +25,7 @@ Template Name: Child Menu
</article>
<?php if ( get_theme_mod( 'page-comments', 'off' ) == 'on' ) { comments_template('/comments.php',true); } ?>
<?php if ( comments_open() || get_comments_number() ) : comments_template( '/comments.php', true ); endif; ?>
<?php endwhile; ?>

View file

@ -20,7 +20,7 @@
</article>
<?php if ( get_theme_mod( 'page-comments', 'off' ) == 'on' ) { comments_template('/comments.php',true); } ?>
<?php if ( comments_open() || get_comments_number() ) : comments_template( '/comments.php', true ); endif; ?>
<?php endwhile; ?>

View file

@ -47,7 +47,7 @@
</div><!--/.boxed-->
<div class="boxed pad">
<?php if ( get_theme_mod( 'post-comments', 'on' ) == 'on' ) { comments_template('/comments.php',true); } ?>
<?php if ( comments_open() || get_comments_number() ) : comments_template( '/comments.php', true ); endif; ?>
</div><!--/.pad-->
<?php endwhile; ?>