• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

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 :

Register for full access

Related Code Snippets

  • 2 Ways To Modify The Leave a Comment Text in Genesis Post Info

Comments Entry Meta

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems