mirror of
https://ghproxy.net/https://github.com/AlxMedia/blogrow.git
synced 2025-08-26 08:17:27 +08:00
Remove global post/page comments settings
This commit is contained in:
parent
d2238691b5
commit
65e2e95e38
4 changed files with 3 additions and 21 deletions
|
@ -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',
|
||||
|
|
|
@ -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; ?>
|
||||
|
||||
|
|
2
page.php
2
page.php
|
@ -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; ?>
|
||||
|
||||
|
|
|
@ -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; ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue