Title: Collapsible comments plugin.
Last modified: August 20, 2016

---

# Collapsible comments plugin.

 *  [erhoades](https://wordpress.org/support/users/erhoades/)
 * (@erhoades)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/collapsible-comments-plugin/)
 * Hi I am trying to use the collapsible comments plugin and am having an issue 
   with its install.
 * After placing it in my plugins directory and activating it I am instructed to
   go to my comments php file and replace <?php comment_text(); ?> with <?php collapsiblecomments();?
   > The only problem being I can’t find a comment_text entry. Here is my comments
   php
 * <?php if ( post_password_required() ) : ?>
    <p class=”nopassword”><?php _e( ‘
   This post is password protected. Enter the password to view any comments.’, ‘
   themify’ ); ?></p> <?php /* Stop the rest of comments.php from being processed,*
   but don’t kill the script entirely — we still have * to fully load the template.*/
   return; endif; ?>
 * <?php
    // You can start editing here — including this comment! ?>
 * <?php if ( have_comments() || comments_open() ) : ?>
    <div id=”comments” class
   =”commentwrap”> <?php endif; // end commentwrap ?>
 * <?php if ( have_comments() ) : ?>
    <h4 class=”comment-title”><?php comments_number(
   __(‘No Comments’,’themify’), __(‘One Comment’,’themify’), __(‘% Comments’,’themify’));?
   ></h4>
 *  <?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) ://
   Are there comments to navigate through? ?>
    <div class=”pagenav top clearfix”
   > <?php paginate_comments_links( array(‘prev_text’ => ‘«’, ‘next_text’ => ‘»’));?
   > </div> <!– /.pagenav –> <?php endif; // check for comment navigation ?>
 *  <ol class=”commentlist”>
    <?php wp_list_comments(‘callback=custom_theme_comment’);?
   >
 *  <?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) ://
   Are there comments to navigate through? ?>
    <div class=”pagenav bottom clearfix”
   > <?php paginate_comments_links( array(‘prev_text’ => ‘«’, ‘next_text’ => ‘»’));?
   > </div> <!– /.pagenav –> <?php endif; // check for comment navigation ?>
 * <?php else : // or, if we don’t have comments:
 *  /* If there are no comments and comments are closed,
    * let’s leave a little
   note, shall we? */ if ( ! comments_open() ) : ?>
 * <?php endif; // end ! comments_open() ?>
 * <?php endif; // end have_comments() ?>
 * <?php
    $custom_comment_form = array( ‘fields’ => apply_filters( ‘comment_form_default_fields’,
   array( ‘author’ => ‘<p class=”comment-form-author”>’ . ‘<input id=”author” name
   =”author” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author’] ) . ‘”
   size=”30″‘ . $aria_req . ‘ class=”required” />’ . ‘<label for=”author”>’ . __(‘
   Your Name’ , ‘themify’ ) . ‘</label> ‘ . ( $req ? ‘<span class=”required”>*</
   span>’ : ” ) . ‘</p>’, ’email’ => ‘<p class=”comment-form-email”>’ . ‘<input 
   id=”email” name=”email” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author_email’]).‘”
   size=”30″‘ . $aria_req . ‘ class=”required email” />’ . ‘<label for=”email”>’.
   __( ‘Your Email’ , ‘themify’ ) . ‘</label> ‘ . ( $req ? ‘<span class=”required”
   >*</span>’ : ” ) . ‘</p>’, ‘url’ => ‘<p class=”comment-form-url”>’ . ‘<input 
   id=”url” name=”url” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author_url’]).‘”
   size=”30″‘ . $aria_req . ‘ />’ . ‘<label for=”email”>’ . __( ‘Your Website’ ,‘
   themify’ ) . ‘</label> ‘ . ‘</p>’) ), ‘comment_field’ => ‘<p class=”comment-form-
   comment”>’ . ‘<textarea id=”comment” name=”comment” cols=”45″ rows=”8″ aria-required
   =”true” class=”required”></textarea>’ . ‘</p>’, ‘logged_in_as’ => ‘<p class=”
   logged-in-as”>’ . sprintf( __( ‘Logged in as [%2$s](https://wordpress.org/support/topic/collapsible-comments-plugin/%1$s?output_format=md).
   [Log out?](https://wordpress.org/support/topic/collapsible-comments-plugin/%3$s?output_format=md)‘),
   admin_url( ‘profile.php’ ), $user_identity, wp_logout_url( apply_filters( ‘the_permalink’,
   get_permalink( $post_id ) ) ) ) . ‘</p>’, ‘title_reply’ => __( ‘Leave a Reply’,‘
   themify’ ), ‘comment_notes_before’ => ”, ‘comment_notes_after’ => ”, ‘cancel_reply_link’
   => __( ‘Cancel’ , ‘themify’ ), ‘label_submit’ => __( ‘Post Comment’ , ‘themify’),);
   comment_form($custom_comment_form); ?>
 * <?php if ( have_comments() || comments_open() ) : ?>
    </div> <!– /.commentwrap–
   > <?php endif; // end commentwrap ?>
 * Other plugins I am using are Autohyperlink URLs, MCE comments, WP Comment Master,
   Simple Local Avatars, and Email Alerts.
 * I could gues why this is happening but I will leave it to wiser minds to assist.
   Any help someone could give would be much appreciated.
    Thanks!

Viewing 1 replies (of 1 total)

 *  [GabSoftware](https://wordpress.org/support/users/gabsoftware/)
 * (@gabsoftware)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/collapsible-comments-plugin/#post-2324582)
 * Hi,
 * Your theme use a custom comment list, look in your theme’s functions.php file,
   you should find a function “custom_theme_comment”. There you should find the 
   comment_text() function.

Viewing 1 replies (of 1 total)

The topic ‘Collapsible comments plugin.’ is closed to new replies.

## Tags

 * [comment php](https://wordpress.org/support/topic-tag/comment-php/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [GabSoftware](https://wordpress.org/support/users/gabsoftware/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/collapsible-comments-plugin/#post-2324582)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
