comments section --needs to be better formatted

This commit is contained in:
Jacob Haddon 2018-11-18 11:07:23 -05:00
parent 28e157123a
commit cf357616cb

45
comments.php Normal file
View File

@ -0,0 +1,45 @@
<?php
/**
* The template for displaying Comments.
*
* The area of the page that contains comments and the comment form.
*
* @package WordPress
* @subpackage Twenty_Thirteen
* @since Twenty Thirteen 1.0
*/
/*
* If the current post is protected by a password and the visitor has not yet
* entered the password we will return early without loading the comments.
*/
if ( post_password_required() )
return;
?>
<div id="comments" class="comments-area">
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">Comments:
</h2>
<div class="comment-list">
<?php
wp_list_comments( array(
'style' => 'div',
'short_ping' => true,
'avatar_size' => 0,
) );
?>
</div><!-- .comment-list -->
<?php if ( ! comments_open() && get_comments_number() ) : ?>
<p class="no-comments"></p>
<?php endif; ?>
<?php endif; // have_comments() ?>
<?php comment_form(); ?>
</div><!-- #comments -->