WordPress.org

Ready to get started?Download WordPress

Forums

[ Twenty twelve theme] How to delete reply on home page (6 posts)

  1. pracede
    Member
    Posted 1 year ago #

    I use twenty twelve theme. I set my home page listing all post. And in the home page where the post has comments, it's displays 1, 2 or more replies. I'd like to remove this text : "1 reply" or "x replies" but i don't know how to do?
    If someone could help me.

  2. Digilodger
    Member
    Posted 1 year ago #

    Hi there,

    Please try entering this into your custom CSS or your child-theme CSS; or if you have Jetpack installed, go to Appearance --> Edit CSS:

    .comments-link { display: none; }

    That should prevent them from displaying.

    Best regards,
    Digilodger

  3. pracede
    Member
    Posted 1 year ago #

    I just want to desable the comment link on home page. And on the post page, i will customize the comment link.
    So if i edit my css file by making:
    .comments-link { display: none; }
    I could not see it on my post page, isn't it ?

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    You're much more likely to lose this change if you don't apply it to a Child Theme stylesheet or Custom CSS plugin.

  5. pracede
    Member
    Posted 1 year ago #

    I use a child theme!

  6. Digilodger
    Member
    Posted 1 year ago #

    Oh, so you only want it to disappear on the home page, but still appear on single-post page?

    Then please use this instead:

    .home .entry-header .comments-link { display: none; /* comment count not appear on home */ }

    Hope that works for you,
    Digilodger

Topic Closed

This topic has been closed to new replies.

About this Topic