Viewing 8 replies - 1 through 8 (of 8 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    First, open that page in the editor and make sure trackbacks are disabled as well. Sometimes the leave a comment link will go away if both comments and trackbacks are disallowed.

    If not, you can hide it by adding the following CSS.

    .hentry .comments a {
    display: none;
    }
    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Actually, on the first bit, make sure trackbacks are also off at settings > discussion in the dashboard.

    Thread Starter willmmb

    (@willmmb)

    You said single page, what about the whole site? Any way to remove it from a template instead of going into every page?

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Check at settings > discussion and make sure they are turned off there.

    I would not edit the PHP files, I would make the change in the CSS by adding what I gave above to the end of your style.css file.

    Thread Starter willmmb

    (@willmmb)

    Got it. But a horizontal line still remains. Any idea how to remove that?

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    If you want the line and the leave a comment gone, then do this instead.

    .hentry .comments {
    display: none;
    }

    You will probably want to add some bottom margin to the social stuff to give a little white space, and you can do that by adding this to the bottom of your CSS and then adjusting the 10px value as you desire.

    #___plusone_1 {
    margin-bottom: 10px !important;
    }
    Thread Starter willmmb

    (@willmmb)

    It all worked. Thank you so much 🙂

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    You are welcome.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘deleting "leave a comment"’ is closed to new replies.