Get access to a growing collection of Premium Ghost Themes with the Yearly Subscription 🔥33% Off

Ghost CMS News: Native Comments

Ghost CMS native comments was introduced in version 5.8.0. The new comment system is clean and intuitive and it will help to increase engagement, with built-in email notifications

Norbert
Norbert3 min read

After the release of the native search function in July, the Ghost team released another great feature: native comments. Comments were the second most requested feature of all time, after search. It's great seeing these features from the Ghost team!

Comment settings

To enable the native comments go to Settings > Membership > Commenting. You will have the following options:

  • Nobodyto disable comments (default setting)
  • All membersenable comments for logged-in members
  • Paid-members onlyenable comments for logged-on paid members only

Additionally, members are asked to complete their profile (they can edit it later on).

Ghost comments profile
Ghost comments profile

Members can reply to comments, like comments, and edit or delete their own comments. There are built-in email notifications every time someone replies to a member comment to help with engagement (this can be toggled on or off from the member profile page in Portal)

Authors also receive email notifications when conversations are happening on posts they have published.

Community moderation

The Ghost team has thought about core features that go together with comments, such as moderation. Some important things to avoid spam and keep the community healthy:

  • Member-only commentsComments can only be created by logged-in members, which helps protect you from spam and negativity.
  • On-page moderation toolsStaff users with the owner or administrator role can moderate comments right from the comment thread.
  • Comment reportingSite owners are emailed when any comment is reported by another member.

There is also an official guideline template, that is recommended to have by the team.

Comments helper

The new {{comments}} helper will be responsible for rendering the UI and the commenting functionality. To add native comments to a custom theme you will have to include the new helper in the post template.

By default, {{comments}} outputs a title and comment count. These elements, along with the color mode and the saturation of the avatar's background color, can be customized via attributes:

  • titleheader text for the comment section
  • counttoggle comment count on or off
  • modeset light or dark mode for comments (auto will determine it automatically)
  • saturationset the saturation of the avatar background color

Example usage of the comments helper:

{{comments title='Join the conversation' count=false mode='auto' saturation=75}}

Comment count helper

The {{comment_count}} can be used to output the number of comments a post has. This option is useful for displaying the comment count at the top of the post or on the homepage within the post feed.

The attributes:

  • emptywhat to output when there are no comments
  • singularthe singular name for a comment
  • pluralthe plural name for comments
  • autowrapwraps comment count in an HTML tag
  • classadd a custom class to the wrapper element

Example usage of the helper:

{{comment_count
  empty=''
  singular='comment'
  plural='comments'
  autowrap='span'
  class='comments--count'
}}

Check out the official docs for more information.

More in News & Updates

All news

Biron Themes becomes Bright Themes 🎉

With Bright Themes, we're taking a bold step forward, infusing our themes with even more luminosity, and ensuring that your website shines brighter than ever before.

Ghost Pro Hosting

Get the best managed Ghost CMS hosting and focus on bringing value to your audience.