WordPress.org

Ready to get started?Download WordPress

Forums

Reply image not to show when threaded comments cannot nest anymore? (11 posts)

  1. Belle224
    Member
    Posted 2 years ago #

    I'm making an image where this image is around the reply image, however, when threaded comments can't be nested anymore, the "reply" text goes away, but the image stays. How can I get the image to go away when the "reply" text disappears because the threaded comments can't show anymore?

    Thanks!

  2. Belle224
    Member
    Posted 2 years ago #

    Is there anyway I could do this like CSS, or PHP or something like that? D:

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

    Is there anyway I could do this like CSS, or PHP or something like that?

    difficult to tell without seeing what html and css are present in the comments.

    a link to your site, pointing to a post with comments and with this problem, might help to get you more replies.

  4. Belle224
    Member
    Posted 2 years ago #

    http://test.berrybellebee.co.cc/?p=1

    Here, and do you need coding from my CSS etc? But you could view the source if needed too. And there's a test post by "Nina", and threaded comments couldn't nest anymore but yet the image is still displayed but not "reply" button.

  5. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    try to add this to style.css of your theme (either near the comment styles, or at the end):

    .depth-5 .reply { display:none;}

    (not widely tested)

  6. Belle224
    Member
    Posted 2 years ago #

    Thanks, it worked.

  7. Belle224
    Member
    Posted 2 years ago #

    Hm, I'm actually running into problems again. When I close comments, the reply button goes away, but the image stays. Any solution?

  8. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try placing the whole <div class=comments">[...]</div> block inside a <?php if ('open' == $post->comment_status) : ?>[...]<?php endif;?> conditional.

  9. Belle224
    Member
    Posted 2 years ago #

    Sorry, I'm a newbie when it comes to theme design, somewhat. Where would I insert that...?

  10. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    From what I can see, try looking in your theme's single.php or comments.php files.

  11. Belle224
    Member
    Posted 2 years ago #

    Thanks, I don't really get it but thanks for trying. :)

Topic Closed

This topic has been closed to new replies.

About this Topic