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
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 ?
Line 58 of wp-includes/template-functions-comment.php has the words 'Comments Off'
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?
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 ?)
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 ;)
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!