WordPress.org

Forums

Change Comments (12 posts)

  1. maxfreeman
    Member
    Posted 11 years ago #

    Hi everyone
    I'm new to wordpress (installed today). But I have a (or many?!) Question: How can I completly remove the "comment" so nobody is able to see "Comments Off" (of course I could make the color white but that seem to me not very clever).
    Thank you for helping!
    regards
    Matthias, Switzerland

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

    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 :)

  3. maxfreeman
    Member
    Posted 11 years ago #

    Hi podz :-)
    - comletely remove the ability for any omments at all
    <- that's what I want :-).
    regards
    Matthias

  4. ringmaster
    Member
    Posted 11 years ago #

    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 (%)'),'',''); ?>

  5. maxfreeman
    Member
    Posted 11 years ago #

    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

  6. Mark (podz)
    Support Maven
    Posted 11 years ago #

    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.

  7. maxfreeman
    Member
    Posted 11 years ago #

    hmm I copied your line but it didn't change anything. Could you help me again (perhaps a mistake on my side?)

  8. Mark (podz)
    Support Maven
    Posted 11 years ago #

    Do this:
    <?php // comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    The two // comment out the commenting :)

  9. maxfreeman
    Member
    Posted 11 years ago #

    sorry but *lol* I'm a stupid? ... ehm it didn't help me either ...
    regards matthias

  10. maxfreeman
    Member
    Posted 11 years ago #

    Hi ringmaster and podz
    Both version failed ... I can still see "Comments off". Any ideas?
    regards
    Matthias

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

    \wp-includes\template-functions-comment.php
    Line 58
    Change the text there ?

  12. ringmaster
    Member
    Posted 11 years ago #

    That's severe, but it should work best. It's the only place in the whole program that those words appear.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.