WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Want to remove one comment bubble (Greyzed) (14 posts)

  1. Calvin
    Member
    Posted 4 years ago #

    I have one post that I have turned off comments. I figured out how to turn remove "COMMENTS HAVE BEEN TURNED OFF". But I want to remove the one remaining comment bubble and the text "COMMENTS OFF". How do I do this?

    [Sig moderated]

  2. wprelief
    Member
    Posted 4 years ago #

    You need to modify the PHP in your single.php script to look at whether comments are on or off.

    You can wrap all of the comment functionality in your theme file (single.php) with:

    if ( comments_open()) {
    //comment stuff from theme in here
    }

    You may have to play games with php tags (<?php or ?>) in order to make this work.

  3. Calvin
    Member
    Posted 4 years ago #

    Sorry I am pretty new to all of this. Can you be more specific?

  4. wprelief
    Member
    Posted 4 years ago #

    The specificity of this depends on your theme and how it is set up. What theme are you using? Can you link me to the web page for the theme?

    Or, could you post the contents of the single.php script here?

  5. Calvin
    Member
    Posted 4 years ago #

    THEME: Greyzed

    WEB PAGE: http://www.txtwars.net

    single.php SCRIPT: http://pastebin.com/T2EEiZDF

  6. wprelief
    Member
    Posted 4 years ago #

    Try replacing line 52:
    <?php comments_template(); ?>
    with this:
    <?php
    if ( comments_open()) {
    comments_template();
    }
    ?>

  7. Calvin
    Member
    Posted 4 years ago #

    Unfortunately that did not work. I tried pasting it in exactly as you have it written and then also tried to make it one "sentence". Neither worked.

  8. Sjeng
    Member
    Posted 4 years ago #

    I don't know how to remove the text "comments off", but the single comment that was already placed can be simply removed if you are the admin. it should have a little (edit) line somewhere.

  9. Calvin
    Member
    Posted 4 years ago #

    There are no comments on the post. I have turned them off. What remains in the default "Comments Off" within the imagery that was coded into the theme. This is NOT to be confused with the "COMMENTS ARE CLOSED". I have already removed that.

  10. wprelief
    Member
    Posted 4 years ago #

    Can you please share the URL where you are still having the problem?

  11. Calvin
    Member
    Posted 4 years ago #

    Same URL that I've been posting. http://www.txtwars.net

  12. wprelief
    Member
    Posted 4 years ago #

    I meant, the specific url to the specific post where you are seeing the issue.

  13. Calvin
    Member
    Posted 4 years ago #

    My apologies... that actually was the URL where it was happening. I have made a lot changes so at this point the question is moot because I have reorganized the site. But I would still love to know how to do it. I imagine in it's the comment.php somewhere.

  14. The Forge
    Member
    Posted 3 years ago #

    Hi Everyone,

    Please note that the Greyzed theme has been re-released with a big upgrade and is available here on our new theme shop: http://www.efrogthemes.com/product/greyzed/

    Enjoy!

Topic Closed

This topic has been closed to new replies.

About this Topic