Conditionally Remove Leave a Comment Link In Genesis

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 :

#Demo Video

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 :

Related Code Snippets

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.