• petite

    (@petite)


    I realise that it is possible to switch off comments in the admin panel when writing a post, but this shows up on the site as “comments off”. I have looked through my index template and comments.php and I can’t find how to modify this – there doesn’t seem to be an “if” section for if comments switched off show this/show nothing. I just want to see blank space, not a “comments off” link which takes people to a “sorry comments are closed at this time” page.

    Any simple way of doing this?

    https://www.petiteanglaise.com

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

    (@silkjaer)

    its either in your single.php file or comments.php file .. :0)

    Thread Starter petite

    (@petite)

    I have a gemini template left over from the olden days, so using index.php and comments.php.

    I can’t see what to change, the only bit relating to closed comments is:

    <?php else : // Comments are closed ?>

    <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>

    <?php endif; ?>

    but that doesn’t tell me where the “comments off” text is coming from.

    moshu

    (@moshu)

    It’s coming from wp-includes/comment-functions.php, line 277.

    Thread Starter petite

    (@petite)

    great, thank you, I’ve removed the text and all is how I wanted it to be.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘removing comments link on a single post’ is closed to new replies.