WordPress.org

Ready to get started?Download WordPress

Forums

How to remove "| Comments Off " from being displayed? (6 posts)

  1. rburkhammer
    Member
    Posted 3 years ago #

    Hello,

    I am using twenty ten and setup a child theme which is great. I posted and was able to remove posted on and in but now I am never going to have comments allowed and even though it is off I really want to remove the"| Comments Off " that is displayed. I have gone through functions.php and tried to remove that entire section but it breaks the code. Any suggestions or advice would be great.

    Thank you

  2. Tara
    Member
    Posted 3 years ago #

    see if any of these threads help:

  3. rburkhammer
    Member
    Posted 3 years ago #

    Thanks t-p but I dont see the comments are off anywhere in those files for Twenty-Ten.

    Our site is http://www.fpaonline.org and I tried editing what I thought may be it by changing comments to "asdf" but no luck. Here is the comments file and none of the other files index,etc. seemt o have any refernce to comeents:

    [Code moderated as per the Forum Rules. Please use the pastebin]

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    'comments off' is the default of the fifth parameter of:
    http://codex.wordpress.org/Function_Reference/comments_popup_link

  5. guitarguyNEC
    Member
    Posted 3 years ago #

    I usually just comment out the comments template request in the single.php file.

    At a quick glance, that would be loop-single.php for the 2010 theme. And I think you would want to replace
    <?php comments_template( '', true ); ?>

    with

    <!-- <?php comments_template( '', true ); ?> -->

  6. rburkhammer
    Member
    Posted 3 years ago #

    guitarguyNEC,

    That worked great, thank you very much!! The comments off is all gone. I tried removing the pipe "|" by removing it out of loop.php but cant get rid of it but it looks great with the comments portion removed.

Topic Closed

This topic has been closed to new replies.

About this Topic