WordPress.org

Forums

Editing single.php for new theme (5 posts)

  1. hawthorn
    Member
    Posted 7 years ago #

    I'm integrating my website with WordPress and i'm a bit confused about the link <a href="#respond">leave a response</a> in single.php.

    What/where is it supposed to do/go ?

  2. moshu
    Member
    Posted 7 years ago #

    To the comment form. Usually, it is placed at the bottom of a single post before the comments start... say you have 127 comments - clicking on the link above would take me directly to the comment form without a need to scroll through the 127 comments.

  3. hawthorn
    Member
    Posted 7 years ago #

    ..er ok thanks, but why does it not go anywhere then? It's the default theme code.

  4. moshu
    Member
    Posted 7 years ago #

    I don't know. I don't deal with the default. But I know it works. Of course, if you don't have anything on the page, seemingly it doesn't go anywhere.

    The "target" is in the comments.php:
    <h3 id="respond">Leave a Reply</h3> it should jump there.

  5. hawthorn
    Member
    Posted 7 years ago #

    Thanks ;-) I'd accidentally removed the target in comments.php .

Topic Closed

This topic has been closed to new replies.

About this Topic