Add link to Comments in byline of each post

Viewing 5 posts - 1 through 5 (of 5 total)
  • #15278
    daisy
    Participant

    Hi,
    Great theme, I really love the forum!

    I want to add a link to the comments of each post in the byline section. My site is
    http://fullthymestudent.com/

    I think I have to add

    <?php the_permalink(); ?>#comments”><?php comments_number(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?>

    somewhere to make it work, but I can’t get it to happen. As you can see on the first two posts on my index page, in the byline, there’s the perfect space between the categories and “permalink” link, and I’d like it to say “No comments” or “2 comments” or “10 comments” and so forth. I would like this comments link to also be in the byline of each individual post, too. I hope that makes sense.

    Thanks so much!
    Daisy

    #15322
    Daniel Tara
    Keymaster

    The function you’re looking for is comments_popup_link(). You need to insert it in the function pinboard_entry_meta() link this:

    <span class="entry-comments"><?php comments_popup_link( __( 'No Comments', 'pinboard' ), __( '1 Comment', 'pinboard' ), __( '% Comments', 'pinboard' ) ); ?></span>
    #15397
    daisy
    Participant

    Yes! Oh my god, thank you so much! I made it work by adding it to the functions.php file. Would you know how to make the comments link look a little neater? Like how the author link(person icon), date link(clock icon), categories link(ribbon icon), and permalink link have small icons next to them, I’d like to set off the comments link with something so it looks better.

    If you can help me, that’d be awesome. Thank you again so much.

    #15428
    Daniel Tara
    Keymaster

    You can only add that icon manually.

    #15518
    daisy
    Participant

    Do you happen to know how I can go about that? I’m willing to learn! I’d really like to have an icon to separate the comments link from the other links.
    Thanks so much

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.