These snippets allow you to conditionally remove the comments altogether (and optionally display a message) or remove just the comment form (and optionally display a message). They are specific for use in the Genesis Framework.
Conditionally Remove Comments in Genesis
Conditionally Remove Comment Form in Genesis
In all cases, remember to replace
$some_condition in the if() statements to whatever conditional you need to use.
Shashank Bhattarai says
Can you tell me how to remove whole comment section in genesis ?
Avinash Jude D'Souza says
Been awhile Ren!
Quick question; what use cases do you see for this code?
I had a VERY quick think and I can’t come up with anything off the top of my head…
Hey, Avinash. The main idea behind this is if someone wants to close off comments to specific categories or maybe users who don’t have certain capabilities, etc. It’s not something many people are going to want to do but I found myself exploring the option so I did the research and made it available.