The following PHP code enables you to remove the leave a comment link from posts like this :
Copy & paste the code to the end of your child themes functions file.
To remove the Leave a Comment link from other pages, swap out the
is_singular('post') conditional tag with any other conditional tag.
Another option is to add the code directly to a template file like a single.php, page_blog.php, archive.php or any other template file supported by the WordPress Template Hierarchy.
Related Code Snippets
- 2 Ways To Modify The Leave a Comment Text in Genesis Post Info
- Conditionally Remove Leave a Comment Link In Genesis
- Conditional Genesis Post Info
Was this helpful?
Thanks for your feedback!



Leave a Reply
You must be logged in to post a comment.