[resolved] Not letting the commentform jump under the parent comment when replying (4 posts)

  1. Xevo
    Posted 5 years ago #


    I'm sure this is pretty easy, but can't find out how to do it.

    What happens now is that when I reply to a comment it moves the commentform under the comment which I am replying too.

    What I want is that the commentform stays in its place, you go to the commentform down the page and you see who you're replying too.

    Here's what I found out, the comment_reply_link function has two arguments "add_below" and "respond_id" which tells the javascript where too place the form, but I don't know what parameters these arguments take and how I can stop the javascript from moving the form.

    Any help would be greatly appreciated.


  2. Xevo
    Posted 5 years ago #

    Anyone? :)

  3. esmi
    Forum Moderator
    Posted 5 years ago #

    Try editing your theme's header.php template file and removing:

    <?php if(is_singular()) wp_enqueue_script( 'comment-reply' );?>
  4. Xevo
    Posted 5 years ago #

    I didn't have that in my header, so when I tried this, it worked.
    <?php if(is_singular()) wp_deregister_script('comment-reply'); ?>

    You put me on the right track though, thanks. :)

Topic Closed

This topic has been closed to new replies.

About this Topic