WordPress.org

Support

Support » Themes and Templates » Removing "no comments yet"

Removing "no comments yet"

  • basereader42
    Member

    @basereader42

    I’d like to stop the “no comments yet” link from appearing on my site. I’ve removed “comment” and “reply” capabilities, but “no comments yet” continues to display.

    Thanks in advance for any help and for developing an outstanding theme.

Viewing 6 replies - 1 through 6 (of 6 total)
  • To remove the comments area and comment count above posts I used the following CSS:

    .entry-meta .info-comment,.entry-meta.entry-meta-tertiary,#respond.comment-respond,#comments.comments-area{display:none !important;}

    If you just wish to remove “no comments yet” then CSS is:

    .entry-meta .info-comment,.entry-meta.entry-meta-tertiary {display:none !important;}

    basereader42
    Member

    @basereader42

    Great, thanks for the correct CSS!

    on which php file do we add the css above, page.php, theme.php etc??

    readallablogit
    Member

    @readallablogit

    You’d add this in the styles.css document.

    esmi
    Forum Moderator

    @esmi

    @readallablogit:Thank you contributing to the forums but please do not encourage people to edit theme files directly. At best, they will lose all of their changes when they update the theme. At worst, they could bring their site down. They should be recommended to create a child theme or use a custom CSS plugin for their changes.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing "no comments yet"’ is closed to new replies.