Fix the comment reply to open form below the comment.
This commit is contained in:
parent
756535f068
commit
1c6de0c6d3
|
@ -60,7 +60,7 @@ if (post_password_required()) {
|
||||||
<?php if (have_comments()) : ?>
|
<?php if (have_comments()) : ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col col-sm-9 mx-sm-auto pl-sm-2 mt-4 list-comments">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ function tainacan_Comments_Callback($comment, $args, $depth) {
|
||||||
global $post;
|
global $post;
|
||||||
//var_dump($args);die;
|
//var_dump($args);die;
|
||||||
$class_has = "has-children media comment-". $comment->comment_ID; ?>
|
$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
|
<?php
|
||||||
$arg = array('class' => 'img-fluid rounded-circle mr-sm-3', );
|
$arg = array('class' => 'img-fluid rounded-circle mr-sm-3', );
|
||||||
echo get_avatar($comment, 60, '', '', $arg);
|
echo get_avatar($comment, 60, '', '', $arg);
|
||||||
|
|
Loading…
Reference in New Issue