> ## Content Index
> Fetch the complete content index at: https://getpublii.com/dev/llms.txt
> Use this file to discover other available public pages before exploring further.

# @customCommentsCode global variable

- URL: https://getpublii.com/dev/customcommentscode-global-variable/
- Published: 2022-07-17T09:59:19.313Z
- Updated: 2024-02-09T10:34:26.744Z
- Description: When you want to add support for Publii comments plugins, it is necessary to add support for customComments under supportedFeatures of the theme. To add…
- Author: Tomasz Dziuda
- Tags: Global Variables

When you want to add support for [Publii comments plugins](https://marketplace.getpublii.com/plugins/), it is necessary to add support for `customComments` under [supportedFeatures](#INTERNAL_LINK#/post/133) of the theme.

To add support for comments plugins, you must add the following code fragment in the place where comments should be displayed:

```handlebars
{{{@customCommentsCode}}}
```

For example our [Simple theme](https://marketplace.getpublii.com/themes/simple/) implements this feature in the **post.hbs** file in the following way:

```handlebars
{{#if @config.post.displayComments}}
<div class="post__comments">
    <div class="wrapper">
        {{{@commentsCustomCode}}}
    </div>
</div>
{{/if}}
```

What means that comments are displayed only if they are enabled for the given post or globally under theme settings (if post uses global settings value).
