WordPress.org

Forums

Add "See comments" link to the end of posts (3 posts)

  1. Pyratus
    Member
    Posted 8 months ago #

    Hey
    My site is http://www.flymagpiefly.com and I would like to add a "See comments" link to the end of my posts. I know there's a link to the comments in the header bar, but when you scroll to the end of a long post there's no direction on where to go if you want to comment, unless you scroll all the way to the top. I just want to make a simple button that takes you to the comments for that post.
    Thanks!

  2. Samuel Elh
    Member
    Posted 8 months ago #

    you want the link to be shown only in the single post ? simply add this in your single.php file , but make sure you find the suitable place fro it :

    <a href="/#respond" title="//">"See comments"</a>

    and style it anyway you want using CSS.

  3. You are not aware of it but please don't put [Theme: Minamaze Pro] in the topic titles (now deleted). The forum will add that automatically if you post in the right place.

    But if you mean this theme

    https://slocumthemes.com/wordpress-themes/minimize-pro/

    That's not a theme that's supported in these forums.

    https://slocumthemes.com/contact/

    But don't fret that for now: the link to the comments is generated by this code:

    http://codex.wordpress.org/Function_Reference/comments_link

    So in your theme file you could add this code where you want to

    <a href="<?php comments_link(); ?>">
        See comments
    </a>

    And that should do it. I suggest that you create and activate a child theme for that theme first and make your modifications in that child theme.

    http://codex.wordpress.org/Child_Themes

    Where to specifically add that code is something the theme author may be able to assist you with.

Reply

You must log in to post.

About this Topic