Edit File by line
/home/barbar84/public_h.../wp-conte.../themes/Divi
File: comments.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.', 'Divi' ); ?></p>
[3] Fix | Delete
<?php
[4] Fix | Delete
return;
[5] Fix | Delete
endif;
[6] Fix | Delete
?>
[7] Fix | Delete
<!-- You can start editing here. -->
[8] Fix | Delete
[9] Fix | Delete
<section id="comment-wrap">
[10] Fix | Delete
<?php if ( have_comments() && ! empty( $comments_by_type['comment'] ) ) : ?>
[11] Fix | Delete
<h1 id="comments" class="page_title"><?php comments_number( esc_html__( '0 Comments', 'Divi' ), esc_html__( '1 Comment', 'Divi' ), '% ' . esc_html__( 'Comments', 'Divi' ) ); ?></h1>
[12] Fix | Delete
<?php endif; ?>
[13] Fix | Delete
<?php if ( have_comments() ) : ?>
[14] Fix | Delete
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
[15] Fix | Delete
<div class="comment_navigation_top clearfix">
[16] Fix | Delete
<div class="nav-previous"><?php previous_comments_link( et_get_safe_localization( __( '<span class="meta-nav">&larr;</span> Older Comments', 'Divi' ) ) ); ?></div>
[17] Fix | Delete
<div class="nav-next"><?php next_comments_link( et_get_safe_localization( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'Divi' ) ) ); ?></div>
[18] Fix | Delete
</div> <!-- .navigation -->
[19] Fix | Delete
<?php endif; // check for comment navigation ?>
[20] Fix | Delete
[21] Fix | Delete
<?php if ( ! empty($comments_by_type['comment']) ) : ?>
[22] Fix | Delete
<ol class="commentlist clearfix">
[23] Fix | Delete
<?php wp_list_comments( array('type'=>'comment','callback'=>'et_custom_comments_display') ); ?>
[24] Fix | Delete
</ol>
[25] Fix | Delete
<?php endif; ?>
[26] Fix | Delete
[27] Fix | Delete
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
[28] Fix | Delete
<div class="comment_navigation_bottom clearfix">
[29] Fix | Delete
<div class="nav-previous"><?php previous_comments_link( et_get_safe_localization( __( '<span class="meta-nav">&larr;</span> Older Comments', 'Divi' ) ) ); ?></div>
[30] Fix | Delete
<div class="nav-next"><?php next_comments_link( et_get_safe_localization( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'Divi' ) ) ); ?></div>
[31] Fix | Delete
</div> <!-- .navigation -->
[32] Fix | Delete
<?php endif; // check for comment navigation ?>
[33] Fix | Delete
[34] Fix | Delete
<?php if ( ! empty($comments_by_type['pings']) ) : ?>
[35] Fix | Delete
<div id="trackbacks">
[36] Fix | Delete
<h3 id="trackbacks-title"><?php esc_html_e('Trackbacks/Pingbacks','Divi'); ?></h3>
[37] Fix | Delete
<ol class="pinglist">
[38] Fix | Delete
<?php wp_list_comments('type=pings&callback=et_list_pings'); ?>
[39] Fix | Delete
</ol>
[40] Fix | Delete
</div>
[41] Fix | Delete
<?php endif; ?>
[42] Fix | Delete
<?php else : // this is displayed if there are no comments so far ?>
[43] Fix | Delete
<div id="comment-section" class="nocomments">
[44] Fix | Delete
<?php if ('open' === $post->comment_status) : ?>
[45] Fix | Delete
<!-- If comments are open, but there are no comments. -->
[46] Fix | Delete
[47] Fix | Delete
<?php else : // comments are closed ?>
[48] Fix | Delete
<!-- If comments are closed. -->
[49] Fix | Delete
[50] Fix | Delete
<?php endif; ?>
[51] Fix | Delete
</div>
[52] Fix | Delete
<?php endif; ?>
[53] Fix | Delete
<?php if ('open' === $post->comment_status) : ?>
[54] Fix | Delete
<?php comment_form( array('label_submit' => esc_attr__( 'Submit Comment', 'Divi' ), 'title_reply' => '<span>' . esc_attr__( 'Submit a Comment', 'Divi' ) . '</span>', 'title_reply_to' => esc_attr__( 'Leave a Reply to %s', 'Divi' ), 'class_submit' => 'submit et_pb_button' ) ); ?>
[55] Fix | Delete
<?php else: ?>
[56] Fix | Delete
[57] Fix | Delete
<?php endif; // if you delete this the sky will fall on your head ?>
[58] Fix | Delete
</section>
[59] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function