• Resolved Thort

    (@thort)


    Hi !

    When clicking on the link at the end of the post the comment box appear. The problem is, when clicking the comment box link, the site jumps up to the beginning of the post. Then, one have to scroll all the way down to the comment box. Very annoying!

    Is it possible to have the site stay at the position of the link after clicking the link, and display the comment box immediately on the screen whithout having to scroll down to it?

    My site:
    http://thort.se/photoblog/category/snow-covered-forest/

Viewing 6 replies - 1 through 6 (of 6 total)
  • this should help you
    http://wordpress.org/support/topic/54655?replies=3

    If there are no comments on a particular article the comments link has “#respond” on it, which isn’t included in a lot of customized themes.
    I noticed this earlier and you need to add a bookmark into your theme somewhere:
    <a name="respond">
    I put it into my comments.php template just above the comments form.

    Thread Starter Thort

    (@thort)

    Thanks for you fast reply citeewurkor!

    As you suggest I have put <a name="respond"></a> at the beginning of my comments.php template. Note, you forgot </a>. I had to add </a> to make the site validate properly.

    And it works! Now, the site doesn’t jump back to the beginning of the post when clicking on the comments link. The comment box appear immediately on the screen. Just as I want it to do.

    Very Good. Thanks! 🙂

    What did I forget?
    looks like it got garbled.

    Thread Starter Thort

    (@thort)

    Sorry !

    I forgot to put backticks around the tag. This is the first time I write tags in a post in this forum. Now, I have edited my reply above.

    oh, the closing tag.
    Yeah. It works with most browsers without it. But for validation,you’re correct.
    I suspect you could self close it, too. like this

    <a name="respond" />

    Thread Starter Thort

    (@thort)

    <a name="respond" /> also validates okey.

    🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Customize Comment Box position’ is closed to new replies.