Убрать в WP надпись "Комментарии отключены"

Art7ice
На сайте с 20.07.2012
Offline
32
4085

Собсно, надпись отображается на любой странице, в том числе и в анонсах на главной. Автора и дату с временем удалил, а с этим запара. Тема frente. Пробовал действовать по нубски и банально удалил кусок кода с "comments are closed", да и вообще снес весь файл comments.php - результата нет.

Где и как откопать собаку?


<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'frente' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
// are there comments to navigate through ?>
<nav id="comment-nav-above" class="comment-navigation" role="navigation">
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'frente' ); ?>
</h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'frente' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'frente' ) ); ?></div>
</nav><!-- #comment-nav-above -->
<?php endif; // check for comment navigation ?>

<ol class="comment-list">
<?php
/* Loop through and list the comments. Tell wp_list_comments()
* to use frente_comment() to format the comments.
* If you want to overload this in a child theme then you can
* define frente_comment() and that will be used instead.
* See frente_comment() in inc/template-tags.php for more.
*/
wp_list_comments( array( 'callback' => 'frente_comment' ) );
?>
</ol><!-- .comment-list -->

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : //
are there comments to navigate through ?>
<nav id="comment-nav-below" class="comment-navigation" role="navigation">
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'frente' ); ?>
</h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'frente' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'frente' ) ); ?></div>
</nav><!-- #comment-nav-below -->
<?php endif; // check for comment navigation ?>

<?php endif; // have_comments() ?>

<?php
// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<p class="no-comments"><?php _e( 'Comments are closed.', 'frente'); ?></p>
<?php endif; ?>
[Удален]
#1

если шаб со своем структурой, то копайте там (и почистите кеш)

tpe3egol
На сайте с 01.07.2012
Offline
69
#2

Удалите данные папки "comments" из стандартных шаблонов, если таковые имеются. У меня бывало, что выбранная тема, брала из них некие настройки:)

Успехов

SeVlad
На сайте с 03.11.2008
Offline
1609
#3

Ёлки палки..

<p class="no-comments"><?php _e( 'Comments are closed.', 'frente'); ?></p> 
Делаю хорошие сайты хорошим людям. Предпочтение коммерческим направлениям. Связь со мной через http://wp.me/P3YHjQ-3.

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий