Title: Hide commentary boxes by code
Last modified: August 30, 2016

---

# Hide commentary boxes by code

 *  [danielpribeiro](https://wordpress.org/support/users/danielpribeiro/)
 * (@danielpribeiro)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/hide-commentary-boxes-by-code/)
 * Good afternoon .. this code is the comments page of my blog ( comments.php ) .
   What lines do I delete to delete the comment boxes . I would leave only comments
   facebook , but for this I need to hide the wordpress comment box . What deleto
   to hide ?
 * <?php
    //Required password to comment if ( post_password_required() ) { ?> <p
   ><?php _e( ‘This post is password protected. Enter the password to view comments.’,
   THEMEDOMAIN ); ?></p> <?php return; }
 * //Display Comments
    if( have_comments() ) : ?>
 * <h5 class=”cufon”><?php comments_number(‘No comment’, ‘Comment’, ‘% Comments’);?
   ></h5>
 * <?php wp_list_comments( array(‘callback’ => ‘pp_comment’, ‘avatar_size’ => ’40’));?
   >
 * <!– End of thread –>
    <br class=”clear”/>
 * <?php endif; ?>
 * <?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) ://
   Are there comments to navigate through? ?>
 * <div class=”pagination”><p><?php previous_comments_link(); ?> <?php next_comments_link();?
   ></p></div><br class=”clear”/><div class=”line”></div>
 * <?php endif; // check for comment navigation ?>
 * <?php
    //Display Comment Form if (‘open’ == $post->comment_status) : ?>
 * <div id=”respond”>
    <?php comment_form(); ?> </div>
 * <?php endif; ?>

Viewing 1 replies (of 1 total)

 *  [HostAwesome](https://wordpress.org/support/users/hostawesome/)
 * (@hostawesome)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/hide-commentary-boxes-by-code/#post-6357134)
 * Hey,
 * It’s probably better just to disable comments through your settings.
 * You can use this plugin – [https://wordpress.org/plugins/disable-comments/](https://wordpress.org/plugins/disable-comments/)
 * as well if you have it enabled on a lot of individual posts.

Viewing 1 replies (of 1 total)

The topic ‘Hide commentary boxes by code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [HostAwesome](https://wordpress.org/support/users/hostawesome/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/hide-commentary-boxes-by-code/#post-6357134)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
