Forums

Add "Comments" Link to Top of Posts (4 posts)

  1. VizionQuest
    Member
    Posted 3 years ago #

    I would like to add a simple comments link to my posts so that a visitor can be quickly taken to the bottom of the post where they can comment. Thanks for you time and help, it is greatly appreciated.

  2. TheSooFoo
    Member
    Posted 3 years ago #

    Gosh, I bet you could create a link with html that could do that, but I forget what that code is called.

  3. VizionQuest
    Member
    Posted 3 years ago #

    I've tried, this suggestion but it doesn't work:
    http://www.nathanrice.net/blog/comment-link-in-singlephp

  4. VizionQuest
    Member
    Posted 3 years ago #

    Got it:
    <div align="right"><a rel="nofollow" href="<?php the_permalink(); ?>#respond"><p id="comments"><?php comments_number('No comments', '1 Comment', '% Comments' );?></p></a></div>

    or

    <div align="right"><a rel="nofollow" href="<?php the_permalink(); ?>#comments"><p id="comments"><?php comments_number('No comments', '1 Comment', '% Comments' );?></p></a></div>

    depending on the your theme's comments.php file. It is just a matter of using #comments or #respond in the above examples.

Topic Closed

This topic has been closed to new replies.

About this Topic