Disqus Comments

This feature enables Disqus Comments and Disqus Comments Count (optional). To enable this feature, follow the steps in each section below.


Generate Disqus Shortname

This feature requires a shortname. To generate a shortname, follow the steps below:

  1. Visit https://disqus.com/ and sign in
  2. Select the website you wish to get the shortname for
  3. Visit settings, copy the text next to Your website’s shortname is and keep it safe

Disqus Comment Count Link also require configuration. To configure, follow the steps below:

  1. Visit settings and remove comment and comments from the Comment Count Link fields
  2. Save settings

Add Your Configuration

This feature requires configuration, these requirements are detailed below:

Option Note
var disqus_shortname = "SHORTNAME"; Your shortname

To add your configuration, follow the steps below:

  1. Locate the theme folder. Example: /ghost/content/themes/ghost-theme/
  2. Open partials/disqus.hbs
  3. Add your configuration
  4. Save partials/disqus.hbs

Add Theme Partials

This feature requires a theme partial. To add the partial, follow the steps below:

  1. Open default.hbs
  2. Find {{!> "disqus"}}
  3. Remove the exclamation mark to add the partial
  4. Save default.hbs
  5. Open partials/post.hbs
  6. Find {{!> "post/comments"}}
  7. Remove the exclamation mark to add the partial
  8. Find all instances of {{!> "post/comments-count"}} (optional)
  9. Remove the exclamation mark to add the partial (optional)
  10. Save partials/post.hbs
  11. Restart Ghost
  1. Open default.hbs
  2. Find {{!> "disqus"}}
  3. Remove the exclamation mark to add the partial
  4. Save default.hbs
  5. Open partials/post.hbs
  6. Find {{!> "post/comments"}}
  7. Remove the exclamation mark to add the partial
  8. Find all instances of {{!> "post/comments-count"}} (optional)
  9. Remove the exclamation mark to add the partial (optional)
  10. Save partials/post.hbs
  11. Restart Ghost

Still need help? Contact Us Contact Us