Archived topic
Is there a way to disable comments on all posts?
5 replies · Started by Samuel on December 15, 2017
The title says it all. I have comments turned off in Wordpress settings and in the past themes I used either followed that setting or had a setting to disable posting comments on all pages and posts. In my case I found GP showing the comments area on an old post. For now, I put in a bit of css to hide the .comments-area div. However, if there a hook or something I could use so that the comments information isn't even generated on the page?
Hi there,
That is handled by WordPress.
I assume you mean the existing posts are still showing comments?
You will need to go to Posts/Pages lists in your dashboard, hover the title and click quick edit, then uncheck Allow Comments.
Let me know if this is what you mean.
Yes, apparently old posts are showing comments. Years ago I had comments enabled before turning them off in the last few years. So basically GeneratePress shows comments no matter what if they were enabled on the post in the past?
Again GP does not handle this part, it's WordPress.
Have you tried my suggestion? (quick edit > uncheck allow comments). That's what you have to do for old posts (posts that created BEFORE you turn off comments in settings).
I understand how to turn off comments, but I have a lot of old posts so for now I will disable the section via css.
You can use Bulk Action > Edit to do it at once.