What is it you want to do ?
– completely remove the ability for any comments at all
or
– change the color/appearance only when you choose not to have comments on a post
Each needs a different approach π
Hi podz π
– comletely remove the ability for any omments at all
<- that’s what I want :-).
regards
Matthias
If you just want the link to not appear, you can look in your index.php file for this line:
<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
And change it to:
<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)'),'',''); ?>
Ok I think … that should be enough. Remove the ability to give some comments is probaply more complex.
thank you for your help.
regards
Matthias
It’s not π
It’s just that you’ll need to alter what the program outputs when you have ‘Comments Off’.
You could change that to anything you wanted.
hmm I copied your line but it didn’t change anything. Could you help me again (perhaps a mistake on my side?)
Do this:
<?php // comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
The two // comment out the commenting π
sorry but *lol* I’m a stupid? … ehm it didn’t help me either …
regards matthias
Hi ringmaster and podz
Both version failed … I can still see “Comments off”. Any ideas?
regards
Matthias
\wp-includes\template-functions-comment.php
Line 58
Change the text there ?
That’s severe, but it should work best. It’s the only place in the whole program that those words appear.