自定义Wordpress中评论模板的儿童评论

时间:2018-08-28 10:52:08

标签: wordpress

我通过wordpress中的wp_list_comments()自定义了我的评论列表。 我的评论列表显示为以下代码:

<div class="media">
   <img alt="" src="http://1.gravatar.com/avatar/467b04d8bf4d1bab445fa1f21233acf5?s=70&amp;d=mm&amp;r=g" srcset="http://1.gravatar.com/avatar/467b04d8bf4d1bab445fa1f21233acf5?s=140&amp;d=mm&amp;r=g 2x" class="avatar avatar-70 photo" height="70" width="70">                                                                  
   <div class="media-body">
        <div class="info">
             <div class="title-desc">
                  <p class="desc">
                     I like this
                  </p>
                  <h5 class="mt-0 title">
                      Tinh<span class="date-comments"> - August 21, 2018 </span>
                  </h5>
                  <a class="reply-link">
                     <i class="fa fa-reply"></i>                         
                  </a>                                                     
                  <a rel="nofollow" class="comment-reply-link" href="http://192.168.1.95/wp-garden/space-of-newly-built-coffee-garden/?replytocom=4#respond" onclick="return addComment.moveForm( &quot;comment-4&quot;, &quot;4&quot;, &quot;respond&quot;, &quot;27&quot; )" aria-label="Reply to Tinh">Reply</a>
             </div>
        </div>
    </div>
</div>
<ul class="children">
    <div class="media">
        <img alt="" src="http://1.gravatar.com/avatar/74cc0648317d5843d3a03aa2fd7f8e6e?s=70&amp;d=mm&amp;r=g" srcset="http://1.gravatar.com/avatar/74cc0648317d5843d3a03aa2fd7f8e6e?s=140&amp;d=mm&amp;r=g 2x" class="avatar avatar-70 photo" height="70" width="70">                                                                  
        <div class="media-body">
            <div class="info">
                <div class="title-desc">
                    <p class="desc">
                        At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi.
                    </p>
                    <h5 class="mt-0 title">
                        Violet Chapman<span class="date-comments"> - August 24, 2018 </span>
                    </h5>
                    <a class="reply-link">

                        <i class="fa fa-reply"></i></a><a rel="nofollow" class="comment-reply-link" href="http://192.168.1.95/wp-garden/space-of-newly-built-coffee-garden/?replytocom=8#respond" onclick="return addComment.moveForm( &quot;comment-8&quot;, &quot;8&quot;, &quot;respond&quot;, &quot;27&quot; )" aria-label="Reply to Violet Chapman">Reply</a>

                </div>
            </div>
        </div>
    </div>
</ul>

我想放

  

<ul class=children>....</ul>-儿童评论    在家长评论中。

你能告诉我如何吗?

0 个答案:

没有答案