Hide comments area when closed

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

Status: resolved
Viewing 5 reply threads
  • Author
    Posts
    • #17706

      rfischmann
      Member

      Whenever I close comments on a post, like this one, the comments area title is still visible. How do I completely hide it?

      Thanks.

    • #17710

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17720

      rfischmann
      Member

      I have this there, indeed:

      add_action('newsbeat__site_before_comments_area', function() {
          if ( comments_open() || get_comments_number() ) {
      	echo '<div class="pbs-header widget-title-wrapper w-t-w m-t__30"><h3 class="pbs-title widget-title w-t"><span>Comentários</span></h3></div>';
          }
      });

      Can you help me add a conditional to check if comments are opened or not, please?

      • This reply was modified 2 d, 8 h by  Jacob. Reason: modified!
      • This reply was modified 2 d, 8 h by  Jacob. Reason: modified!
    • #17759

      rfischmann
      Member

      Any help here?

    • #17762

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17773

      rfischmann
      Member

      Thank you.

Viewing 5 reply threads
  • You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

© Copyright 2019 by wpthms.com. All Rights Reserved.