Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This is an alpha release of the 3.x rewrite. It is not a stable 3.0.0 release and is not covered by the security advisory policy. Do not use it on production sites unless you are testing.
3.x pins comments in Drupal's default comment list. A Views block is no longer used, and the Comments field should stay enabled in Manage display.
Changes since 2.x:
- Compatible with Drupal 10 and 11.
- Stick on top / Remove from top on top-level comments only; replies stay with the parent.
- Settings at /admin/config/content/comment-on-top (new comment types are enabled by default).
- Optional Twig overrides, for example comment--pinned-on-top.html.twig.
- Comment on top by likes pins the most liked top-level comment (likes minus dislikes). Enable comment types at /admin/config/content/comment-on-top/by-likes, or per node under Comment settings.
On Drupal 11.4 Standard, create a content type, a comment type, and a Comments field before using this module.
Do not upgrade from 2.x without reading the README. Sites that used the Views block and a disabled Comments field need to restore the default comment display.
Please report issues at https://www.drupal.org/project/issues/comment_on_top