admin管理员组文章数量:1320661
I'm calling my comments the ol' fashion way:
<?php wp_list_comments('avatar_size=60'); ?>
I would like to be able to position the 'Reply" link where I choose. Right now, it defaults to the bottom of the comment. Sure, I can move it via CSS - but what if I want to place it after the dater or username?
I'm calling my comments the ol' fashion way:
<?php wp_list_comments('avatar_size=60'); ?>
I would like to be able to position the 'Reply" link where I choose. Right now, it defaults to the bottom of the comment. Sure, I can move it via CSS - but what if I want to place it after the dater or username?
Share Improve this question asked Jan 18, 2013 at 21:06 AndrettiMilasAndrettiMilas 1,0516 gold badges26 silver badges55 bronze badges1 Answer
Reset to default 2Use a custom callback to render the comment content. Inside of the callback function call comment_reply_link()
wherever you need it:
comment_reply_link(
array_merge(
$args,
array (
'add_below' => 'comment-body',
'depth' => $reply_depth,
// + 1 to offer always a reply link for a consistent UI
'max_depth' => $args['max_depth'] + 1,
'before' => '<p class="reply-line">',
'after' => '</p>'
)
)
);
本文标签: Repositioning 39Reply39 Link in Comments
版权声明:本文标题:Repositioning 'Reply' Link in Comments 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742063243a2418683.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论