Why no comment link under blog posts? How to add it?

Viewing 5 posts - 1 through 5 (of 5 total)
  • #16846
    Lisa
    Participant

    I removed the “excerpt” feature on my blog, so it now basically shows full posts. The thing is, there’s a little menu underneath each post that shows “author”, “date”, “category”, “edit”, and “permalink” … but no “comment” link for people to click. I find this quite crucial.

    I know the comment option is there when you click on each individual post. But looking over the main blog page, it’s not obvious that there’s even a comment section at all.

    Does anyone know how I can add it? The coding of this particular theme is a little more complicated than what I’ve dealt with so far. I’m not even sure which php file I should modify for this.

    #16879
    Daniel Tara
    Keymaster

    You can find the links below each post in functions.php inside the pinboard_entry_meta() function. The function you need to insert theme is comments_popup_link().

    #17166
    Lisa
    Participant

    Thanks Daniel, but I don’t understand what code exactly I’m supposed to paste? This is the part of coding you are referring to:

    I understand I’m supposed to paste something in between, but what exactly and where?

    #17174
    Daniel Tara
    Keymaster

    Try inserting it before this line:

    wrapped in php tags like this:

    #17181
    Lisa
    Participant

    Awesome, thanks! The code mentioned above didn’t work for me, but for others who might be interested, this is what I put in my code and it works like a charm now πŸ™‚

    <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment' ), __( '1 Comment' ), __( '% Comments' ) ); ?></span>

    Thanks again Daniel!

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

Tagged: , ,

You must be logged in to reply to this topic.