Hi,
I’m using Ghost’s default comments system and I’m wondering if there’s a way to disable comments but only for specific posts or even posts in specific tags. If it’s not possible via Ghost’s default settings, is there a way to incorporate such functionality in a custom theme?
Thanks in advance!
It would be easy to either make a custom post template that excludes the comments helper, or to wrap some logic around the helper that doesn’t load it when a certain tag is present. But yeah, you’d need to edit the theme. I guess you could go JavaScript with code injection to remove the comments…
Your suggestion led me to wrap comments with something like this {{^has tag="tag_i_want_to_exclude"}}
. Not sure if it’s the best solution but it seems to be working. 
Thank you!
1 Like
There’s another way to do this without Javascript and without editing the theme: inject some custom CSS onto a page where you want to hide the comment box. Specifically, add the following to the post header:
<style type="text/css">
.gh-comments {
display: none;
}
</style>
2 Likes