This code enables you to remove the leave a comment link based on the comment count. In this example, the comment link is removed from the blog page template if the comment count is 0.
Here’s the demo video showing how it works :
Shows how the “leave a Comment” link is removed on the blog page template only.
Tested using the Genesis Sample child theme by StudioPress.
Register or login to access the code :
Leave a Reply
You must be logged in to post a comment.