Forums

Comments off (8 posts)

  1. Kiddeath91
    Member
    Posted 7 years ago #

    With the default WordPress settings, when an admin disables comments on a post, the post is still linked with a "Comments (0)" link. When a user clicks this link, they are taken to the post's permalink and then shown that "Sorry, the comment form is closed at this time."
    Is there a way to have this "Comments (0)" link changed to an unlinked statement, like "Comments Off" instead??? It just saves the user a step, and seems to make more sense. I see this on a lot of MT blogs.
    I've sifted through some of the WP PHP files to try to find this, but am not so well versed in PHP. Perhaps someone here could point the way. Thanks for any help.
    jason

  2. Mark (podz)
    Support Maven
    Posted 7 years ago #

    It should say "Comments Off" on the page if that is what you have selected. What version are you using ? Have you altered index.php in the comments area ?

  3. Mark (podz)
    Support Maven
    Posted 7 years ago #

    Line 58 of wp-includes/template-functions-comment.php has the words 'Comments Off'

  4. Kiddeath91
    Member
    Posted 7 years ago #

    Hey Podz,
    I have altered the index.php. Here's what my template says now for comments:
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    Have I erased something?

  5. Mark (podz)
    Support Maven
    Posted 7 years ago #

    That looks fine...just a thought - if you edit the post following publish, and check those buttons again, what happens ?
    (And is this 1.2 ?)

  6. Kiddeath91
    Member
    Posted 7 years ago #

    Thanks, Podz. I didn't have ping status off. This is version 1.2, and I'm a dummie ;)

  7. Mark (podz)
    Support Maven
    Posted 7 years ago #

    Hey - it was a guess :)

  8. laihiu
    Member
    Posted 6 years ago #

    Here's a plugin that you may like to try:

    http://wordpress.org/support/topic/48539

    It replaces "no comments" with "comments off" if your comments are indeed turned off, notwithstanding that pings/trackbacks are on. Good luck!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.