Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/builder
File: comments_template.php
<?php
[0] Fix | Delete
if ( post_password_required() ) : ?>
[1] Fix | Delete
[2] Fix | Delete
<p class="nocomments container"><?php esc_html_e( 'This post is password protected. Enter the password to view comments.', 'et_builder' ); ?></p>
[3] Fix | Delete
<?php
[4] Fix | Delete
return;
[5] Fix | Delete
endif;
[6] Fix | Delete
[7] Fix | Delete
global $et_comments_header_level, $et_comments_form_title_level;
[8] Fix | Delete
[9] Fix | Delete
$et_comments_header_level_processed = isset( $et_comments_header_level ) && '' !== $et_comments_header_level ? et_pb_process_header_level( $et_comments_header_level, 'h1' ) : 'h1';
[10] Fix | Delete
?>
[11] Fix | Delete
<!-- You can start editing here. -->
[12] Fix | Delete
[13] Fix | Delete
<section id="comment-wrap">
[14] Fix | Delete
<<?php echo et_core_intentionally_unescaped( $et_comments_header_level_processed, 'fixed_string' ); ?> id="comments" class="page_title"><?php comments_number( esc_html__( '0 Comments', 'et_builder' ), esc_html__( '1 Comment', 'et_builder' ), '% ' . esc_html__( 'Comments', 'et_builder' ) ); ?></<?php echo et_core_intentionally_unescaped( $et_comments_header_level_processed, 'fixed_string' ); ?>>
[15] Fix | Delete
<?php if ( have_comments() ) : ?>
[16] Fix | Delete
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
[17] Fix | Delete
<div class="comment_navigation_top clearfix">
[18] Fix | Delete
<div class="nav-previous"><?php previous_comments_link( et_get_safe_localization( __( '<span class="meta-nav">&larr;</span> Older Comments', 'et_builder' ) ) ); ?></div>
[19] Fix | Delete
<div class="nav-next"><?php next_comments_link( et_get_safe_localization( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'et_builder' ) ) ); ?></div>
[20] Fix | Delete
</div> <!-- .navigation -->
[21] Fix | Delete
<?php endif; // check for comment navigation ?>
[22] Fix | Delete
[23] Fix | Delete
<?php if ( ! empty( $comments_by_type['comment'] ) ) : ?>
[24] Fix | Delete
<ol class="commentlist clearfix">
[25] Fix | Delete
<?php
[26] Fix | Delete
wp_list_comments(
[27] Fix | Delete
array(
[28] Fix | Delete
'type' => 'comment',
[29] Fix | Delete
'callback' => 'et_custom_comments_display',
[30] Fix | Delete
)
[31] Fix | Delete
);
[32] Fix | Delete
?>
[33] Fix | Delete
</ol>
[34] Fix | Delete
<?php endif; ?>
[35] Fix | Delete
[36] Fix | Delete
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
[37] Fix | Delete
<div class="comment_navigation_bottom clearfix">
[38] Fix | Delete
<div class="nav-previous"><?php previous_comments_link( et_get_safe_localization( __( '<span class="meta-nav">&larr;</span> Older Comments', 'et_builder' ) ) ); ?></div>
[39] Fix | Delete
<div class="nav-next"><?php next_comments_link( et_get_safe_localization( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'et_builder' ) ) ); ?></div>
[40] Fix | Delete
</div> <!-- .navigation -->
[41] Fix | Delete
<?php endif; // check for comment navigation ?>
[42] Fix | Delete
[43] Fix | Delete
<?php if ( ! empty( $comments_by_type['pings'] ) ) : ?>
[44] Fix | Delete
<div id="trackbacks">
[45] Fix | Delete
<h3 id="trackbacks-title"><?php esc_html_e( 'Trackbacks/Pingbacks', 'et_builder' ); ?></h3>
[46] Fix | Delete
<ol class="pinglist">
[47] Fix | Delete
<?php wp_list_comments( 'type=pings&callback=et_list_pings' ); ?>
[48] Fix | Delete
</ol>
[49] Fix | Delete
</div>
[50] Fix | Delete
<?php endif; ?>
[51] Fix | Delete
<?php else : // this is displayed if there are no comments so far ?>
[52] Fix | Delete
<div id="comment-section" class="nocomments">
[53] Fix | Delete
<?php if ( 'open' === $post->comment_status ) : ?>
[54] Fix | Delete
<!-- If comments are open, but there are no comments. -->
[55] Fix | Delete
[56] Fix | Delete
<?php else : // comments are closed ?>
[57] Fix | Delete
<!-- If comments are closed. -->
[58] Fix | Delete
[59] Fix | Delete
<?php endif; ?>
[60] Fix | Delete
</div>
[61] Fix | Delete
<?php endif; ?>
[62] Fix | Delete
<?php if ( 'open' === $post->comment_status ) : ?>
[63] Fix | Delete
<?php
[64] Fix | Delete
// Comment submit content title level.
[65] Fix | Delete
$et_comments_form_title_level_processed = isset( $et_comments_form_title_level ) && '' !== $et_comments_form_title_level ? et_pb_process_header_level( $et_comments_form_title_level, 'h3' ) : 'h3';
[66] Fix | Delete
$et_comments_form_title_level_escaped = et_core_intentionally_unescaped( $et_comments_form_title_level_processed, 'fixed_string' );
[67] Fix | Delete
[68] Fix | Delete
comment_form(
[69] Fix | Delete
array(
[70] Fix | Delete
'label_submit' => esc_attr__( 'Submit Comment', 'et_builder' ),
[71] Fix | Delete
'title_reply' => '<span>' . esc_attr__( 'Submit a Comment', 'et_builder' ) . '</span>',
[72] Fix | Delete
'title_reply_to' => esc_attr__( 'Leave a Reply to %s', 'et_builder' ),
[73] Fix | Delete
'title_reply_before' => '<' . $et_comments_form_title_level_escaped . ' id="reply-title" class="comment-reply-title">',
[74] Fix | Delete
'title_reply_after' => '</' . $et_comments_form_title_level_escaped . '>',
[75] Fix | Delete
'class_submit' => 'submit et_pb_button',
[76] Fix | Delete
'comment_notes_after' => '',
[77] Fix | Delete
'id_submit' => 'et_pb_submit',
[78] Fix | Delete
)
[79] Fix | Delete
);
[80] Fix | Delete
?>
[81] Fix | Delete
<?php else : ?>
[82] Fix | Delete
[83] Fix | Delete
<?php endif; // if you delete this the sky will fall on your head ?>
[84] Fix | Delete
</section>
[85] Fix | Delete
[86] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function