Removing 'leave a comment' from posts

  • Unknown's avatar

    Hi. I want to remove ‘leave a comment’ at the top of all individual posts (comments are already disabled), but keep the date. What is the right code for that?
    Thanks in advance!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there,

    Please use this css;

    .entry-meta span {
      display: none;
    }
    .entry-meta .posted-on {
      display: block;
    }

    I hope it will help you.

  • Unknown's avatar

    That did not work, unfortunately. When I click on ‘leave a comment’ it doesn’t go anywhere (as comments are disabled)- I want to get rid of the phrase ‘leave a comment’ that you can see at the top of posts just under the date.
    The site is oregonaudits.org.
    Thanks!

  • Unknown's avatar

    Oops sorry, I forget too add another selector. Please try this one;

    .entry-meta span,
     .entry-meta > a{
        display: none;
    }
    .entry-meta .posted-on {
      display: block;
    }
    .single .hentry .hentry-inner .entry-meta:before{
        bottom: -25px;
    }
    .single .hentry .hentry-inner .entry-meta{
        margin-bottom: 75px;
    }

    I aslo try to adjust gap between date and the post. So the result will be like this https://cloudup.com/cC1RI24wlLF

  • Unknown's avatar

    Awesome! That got rid of the ‘leave a comment’ phrase. It did leave a backslash below the date; can I erase that?

    I really appreciate how helpful you have been!

  • Unknown's avatar

    Glad that it works :)
    I don’t see any backslash below the date, I just see the black line below the date. Could you give me a screenshot for it?

  • The topic ‘Removing 'leave a comment' from posts’ is closed to new replies.