Closed nise closed 7 years ago
@nise Unfortunately excluding the markup when there are no comments won't work since there won't be anything to reveal once a comment has been submitted on a relevant paragraph.
However your observation is very timely because I have just implemented a solution to this in the latest release. Please refer to this support ticket on the WordPress site where you'll see that the following CSS in a child theme will have the desired effect:
.no_comments {
display: none;
}
I'll implement this as an admin option in the next release. I'll make it optional at this stage because some people like to navigate the content of a page using these headers.
Cheers, Christian
You are right my solution did not work for new comment. Thank you for the css hint.
Having a list of remarks that say exactly the same makes no sense imo, e.g.
Therefore, in commentpress-core/commentpress-core/assets/includes/theme-functions.php on line 2430 these remarks could be put under the condition of having more then one comments: