admin管理员组文章数量:1318564
EDIT: I answered my own question! I was able to do this using 3 lines of CSS - thanks, flexbox! leaving this here in the hopes that it helps someone else someday :)
ment-list{display: flex; flex-direction: column;}
ment-list li{order: 2;}
ment-list li.byuser{order: 1;}
--- original question ---
Working on a site where the client wants to allow commenting on posts by both members (who will be able to log in to the site) and nonmembers. They would like comments by a logged-in user to be displayed at the top of the comments list, and "guest" comments to come up below.
Is there an easy way to do this without involving a plugin?
I'm aware of the "byuser" CSS class which allows for different styling of comments by a logged-in user. This will be helpful. But wondering if there's also any way to re-order the comments.
Thanks in advance for any help!
本文标签: Can comments by a loggedin user be displayed at the top
版权声明:本文标题:Can comments by a logged-in user be displayed at the top? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742049910a2418010.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论