Adding comments to Ghost

Ghost currently does not have built-in support for comments. Learn how to add comment capabilities to your Ghost blog.

Ghost currently does not have built-in support for comments. This article shows you how to add comment capabilities to your Ghost blog using the Disqus platform.

Adding comment functionality to Ghost

To add Disqus commenting to your Ghost site, follow these steps:

  1. If you do not already have a Disqus account, go to https://disqus.com and sign up.

  2. After you register with Disqus and log in, go to http://disqus.com/admin/create.

  3. The Add Disqus to your site page appears:

  • In the Site name text box, type a name for your site. The name can be anything you want.

  • In the Category list box, select a general category for your site.

  • Click Finish registration.

  1. Under Choose your platform, click Universal Code.

  2. Copy the entire block of code in the first text box.

  3. Using SSH, navigate to the installation_directory/content/themes/theme_name directory, where installation_directory is the directory where Ghost is installed and theme_name represents the theme currently enabled for your site.

  4. Use your preferred text editor to open the post.hbs file.

  5. At the end of the file, locate the following line of text:

{{/post}}
  1. Paste the code block that you copied in step 5 just before the {{/post}} element you located in step 8.

  2. Save your changes to the post.hbs file.

  3. Restart Ghost. Disqus comments are now enabled.

Related Articles