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.
Was This Tutorial Helpful?