WordPress.org

Support

Support » How-To and Troubleshooting » Remove “Comments” text

Remove “Comments” text

  • How would you go about removing the text “comments are closed” from a WordPress ready to use page?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    @esmi

    Forum Moderator

    You could try editing the relevant template file and, where you see:

    <?php comments_popup_link([...]); ?>

    add <?php if('open' == $post->comment_status) : ?> immediately before this tag and <?php endif;?> immediately after. The whole thing should then look like:

    <?php if('open' == $post->comment_status) : ?><?php comments_popup_link([...]); ?><?php endif;?>

    I am probably looking in the wrong place, but I am unable to find that particular line.

    This is the closest I could find. Can anyone help? Thanks!

    <?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’,’panorama’) ; ?></p>

    <?php endif; ?>
    <?php endif; ?>

    esmi

    @esmi

    Forum Moderator

    Try removing:

    <?php else : // comments are closed ?>
    <!-- If comments are closed. -->
    <p class="nocomments"><?php _e('Comments are closed','panorama') ; ?></p>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove “Comments” text’ is closed to new replies.
Skip to toolbar