mirror of
https://ghproxy.net/https://github.com/AlxMedia/blogside.git
synced 2025-08-26 08:32:40 +08:00
Remove global post/page comments settings
This commit is contained in:
parent
9eb819e464
commit
b1dc15c0d0
4 changed files with 3 additions and 21 deletions
|
@ -81,24 +81,6 @@ Kirki::add_field( 'blogline_theme', array(
|
|||
'section' => 'general',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// General: Post Comments
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'post-comments',
|
||||
'label' => esc_html__( 'Post Comments', 'blogline' ),
|
||||
'description' => esc_html__( 'Comments on posts', 'blogline' ),
|
||||
'section' => 'general',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// General: Page Comments
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'page-comments',
|
||||
'label' => esc_html__( 'Page Comments', 'blogline' ),
|
||||
'description' => esc_html__( 'Comments on pages', 'blogline' ),
|
||||
'section' => 'general',
|
||||
'default' => 'off',
|
||||
) );
|
||||
// General: Recommended Plugins
|
||||
Kirki::add_field( 'blogline_theme', array(
|
||||
'type' => 'switch',
|
||||
|
|
|
@ -22,7 +22,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
|
@ -17,7 +17,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; ?>
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
<?php if ( get_theme_mod( 'related-posts', 'categories' ) != 'disable' ) { get_template_part('inc/related-posts'); } ?>
|
||||
|
||||
<?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-->
|
||||
</div><!--/.content-->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue