Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am making a theme where I have built in my own custom threading and such using twitter bootstrap. I have it now so that, as per default, when you click reply you are shot down to the WordPress comment forum.

Is there a way to make the comment forum come to you? to display right under the comment you are replying too?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Enqueue the 'comment-reply' script.

function wpse88530_enqueue_comment_reply() {
// Enqueue the comment-reply script on 
//single blog post pages with comments 
// open and threaded comments
if ( 
    // Returns the value for the specified option.
    // 'thread_comments' is a Boolean option where
    // comments are threaded if TRUE, and flat if 
    // FALSE
    get_option( 'thread_comments' ) 
) { 
    // enqueue the javascript that performs 
    //in-link comment reply fanciness
    wp_enqueue_script( 'comment-reply' ); 
}
}
// Hook into comment_form_before
add_action( 'comment_form_before', 'wpse88530_enqueue_comment_reply' );
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.