• What follows is a simple solution to a simple problem (which I couldn’t find newbie information on).

    The simplest and least fuss solution I could find to removing any links to comments at the bottom of WordPress 2 posts goes like this:

    1.In the file comment-functions.php (wp-includes\comment-functions.php) search for the function ‘comments_popup_link’ (without the brackets).
    2.Edit the variable $none so it has no text:

    function comments_popup_link($zero=’No Comments’, $one=’1 Comment’, $more=’% Comments’, $CSSclass=”, $none=”)

    3.When writing (or editing) the post ensure that the ‘Allow comments’ box in the top most Discussion panel is not ticked.

    Effectively WordPress is still displaying something, but that something is nothing. Make sense?

    🙂

    B

Viewing 3 replies - 1 through 3 (of 3 total)
  • Can you not just remove any of the comment related bits from the theme you’re using??
    You’ve probably got, somewhere in the main index page (you can check all this out in the Admin control panel under Presentation>Theme Editor, by the way) comments_template() and comments_popup_link(__('No Comments'), __('1 Comment'), __('% Comments'), 'commentslink', __('Comments off')) so just remove them… If you don’t have these then you’ll have no need for a comments template page either…

    There was a post on this issue just not long ago! Don’t remove nothing yet, unless it’s told by a moderator or link provided…& go from there.. But I’d just comment out what ya don’t need..

    And at this time, I’m not going to mention the stuff that needs it.. Because I’m not going to be held responsible for errors..

    spencerp

    Thread Starter benau

    (@benau)

    cheesemasterdan – yes, that is a more sensible solution. Thanks! B

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Comments Link from Posts’ is closed to new replies.