Fix the comment reply to open form below the comment.

This commit is contained in:
Fabiano Alencar 2018-03-28 11:51:46 -03:00
parent 756535f068
commit 1c6de0c6d3
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ if (post_password_required()) {
<?php if (have_comments()) : ?>
<div class="row">
<div class="col col-sm-9 mx-sm-auto pl-sm-2 mt-4 list-comments">
<?php wp_list_comments('callback=tainacan_Comments_Callback'); ?>
<?php wp_list_comments('type=comment&callback=tainacan_Comments_Callback'); ?>
</div>
</div>

View File

@ -11,7 +11,7 @@ function tainacan_Comments_Callback($comment, $args, $depth) {
global $post;
//var_dump($args);die;
$class_has = "has-children media comment-". $comment->comment_ID; ?>
<div <?php comment_class( $args['has_children'] ? $class_has : ' media' ); ?>>
<div <?php comment_class( $args['has_children'] ? $class_has : 'parent media' ); ?> id="comment-<?php comment_ID() ?>">
<?php
$arg = array('class' => 'img-fluid rounded-circle mr-sm-3', );
echo get_avatar($comment, 60, '', '', $arg);