WordPress.org

Support

Support » How-To and Troubleshooting » Editing single.php for new theme

Editing single.php for new theme

  • 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 ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

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

    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.

    Thanks 😉 I’d accidentally removed the target in comments.php .

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Editing single.php for new theme’ is closed to new replies.