Home › Forums › Support › Hide all comments from all logged out users This topic has 3 replies, 2 voices, and was last updated 7 years, 6 months ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts October 23, 2016 at 2:04 am #237998 Dominik Hi I would love to hide all comments (the comment functions completely) from all logged out users, such as shown here: http://wpsites.net/web-design/hide-comments-logged-out-users/ Example Page: https://dotzauerinstitut.de/uebungen/klimmzuege/ I’m a GP Premium customer – should/can I use hooks? What’s the best solution for this issue? Thank you! October 23, 2016 at 10:15 am #238081 TomLead Developer Lead Developer Hi there, It’s possible, but takes a little coding. First, copy the comments.php file into your child theme. Then find this line: // No direct access, please if ( ! defined( 'ABSPATH' ) ) exit; And put this after it: if ( is_user_logged_in() ) : Then at the very end of the file, find this line: </div><!-- #comments --> And put this after it: <?php endif; ?> Hope this helps ๐ October 24, 2016 at 4:58 am #238300 Dominik Thank you! Works great: https://dotzauerinstitut.de/uebungen/dips/ October 24, 2016 at 10:07 am #238399 TomLead Developer Lead Developer Awesome ๐ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In