WordPress.org

Support

Support » Plugins and Hacks » Removing Moving Form in Comment-Reply.js

Removing Moving Form in Comment-Reply.js

  • I am currently attempting to use the threaded comments and in that the “click to reply” functionality. However, I’d like to remove the part that moves the comment form underneath the comment you’re replying to. I just want the feature of recognizing which comment is being replied to.

    Here is the JS that is included. I’d like to neuter the moving of the comment form but keep the page from posting back when clicking “reply”.

    http://pastie.org/837866

Viewing 3 replies - 1 through 3 (of 3 total)
  • Remove this line

    comm.parentNode.insertBefore(respond, comm.nextSibling);

    Remember this is the dev and not production JS I linked to.

    Thanks, I had this issue too 🙂

    in header.php you can then substitute the included comment-reply.js with your own: (something like this)

    if ( is_singular() && get_option( 'thread_comments' ) )
    {
      wp_deregister_script( 'comment-reply' );
      wp_enqueue_script('comment-reply', get_bloginfo('stylesheet_directory').'/js/comment-reply.dev.js');
    };

    intenseblog
    Member

    @intenseblog

    You don’t need the feature of recognizing which comment is being replied to make nested comment be enabled.
    In your case, just remove the call back to comment-reply.js in your header.php template file.
    [sig moderated as per the Forum Rules]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing Moving Form in Comment-Reply.js’ is closed to new replies.