removing comments in wordpress

by 7 replies
9
i have turned of commenting , but how do i remove where it says comments are closed on my wordpress theme? which set of code do i remove from which file?
#website design #comments #removing #wordpress
  • You have to search for that tag on the comments.php file, or you can disable the comments from the single.php just look for the code comments_template() and replace that line with //comments_template()

    That will deactivate comments function, if you want it back just remove the 2 slashes.
  • Or just open the database my PHPMyAdmin and delete comments from the WP_Comments table.
    • [1] reply
    • Wrong advice... don't listen to it.
      • [ 1 ] Thanks
      • [1] reply
  • I still think the comment out "//" solution is the simplest... see reply #2.
  • thanks guys.

    i removed the following code from comments.php and it worked:

    <?php else : // this is displayed if there are no comments so far ?>

    <?php if ('open' == $post->comment_status) : ?>
    <!-- If comments are open, but there are no comments. -->

    <?php else : // comments are closed ?>
    <!-- If comments are closed. -->
    <p class="nocomments"><?php _e('Comments are closed', 'default'); ?>.</p>

    <?php endif; ?>
  • There's a plug in called "no comments on pages". That gets rid of every comment on every page.

Next Topics on Trending Feed