> For the complete documentation index, see [llms.txt](https://lakm.gitbook.io/commenter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lakm.gitbook.io/commenter/configuration/pin-comments-replies.md).

# Pin Comments/Replies

Commenter allows you to pin a message (comment or reply). The pinned message is moved to the top of the comments list and highlighted to draw users’ attention first.

### Enable/Disable

You can easily enable or disable this feature under the **pin** key in the config file.

```
 // commenter.php
 
 /**
 * Ability to pin comment or reply
 */
'pin' => [
    'enable_comment' => true,
    'enable_reply' => false,
],
```

### Permissions&#x20;

The pin functionality is grouped under the **Edit Menu**. Therefore, to pin a message, a user must have permission to manipulate the message (update or delete).

<figure><img src="/files/gcOpM6Ny6vncIKPltaMJ" alt=""><figcaption></figcaption></figure>

Next, define the policy. By default, the pin policy is disabled. To enable it, create a custom **policy** class and register it under the `pin-message` **permission** key in the Commenter config file.

```
// commenter.php

'permissions' => [
     ...
    'pin-message' => [MyPinMessagePolicy::class, 'pin'],
],
```
