• Hi – I have Disqus installed on my Twenty Twelve theme, and I want the “Leave a reply” text to not appear. Right now at the top of every post “Leave a reply” appears under the title, but it does nothing. I want to remove the text because I have Disqus at the bottom on all posts.

    In Settings -> Discussion: I have “Allow people to post comments on new articles” unchecked.

    If I go to “Quick Edit” of a post and uncheck “Allow comments” – the “Leave a Reply” does disappear, but it also removes the Disqus commenting on my posts.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You can likely use “display:none;” in the CSS to hide that line of text – are you using a Child Theme or custom CSS plugin?

    A link to your site would be necessary for specific help.

    Thread Starter carufela

    (@carufela)

    Sorry – here is the link! https://www.heartraterising.com/

    Looks like you have the entire style.css in your child theme? That’s not ideal – it creates duplicate code and makes it much harder to manage the CSS you’ve changed. Only changes should go in the child theme. So I’d recommend you fix that first.

    The try adding this to the child style.css file:

    .entry-header .comments-link {
        display: none;
    }

    Thread Starter carufela

    (@carufela)

    Darn – I thought I was only supposed to put the customized style in the child theme, but it didn’t seem to work when I did that initially. I’ll take to pull out the customizations and try it again.

    Just so I completely understand, in the child theme – style.css should include JUST the edits to the theme?

    Thank you for the code suggestions! Sounds like it will work, but I will fix the style.css first.

    Yep, the child theme style.css file should only have changes. If you tried that and they did not “work,” that’s usually a case of CSS syntax errors, wrong CSS selectors or not specific enough selectors to override the parent style.css.

    Also, are you aware that twentytwelve is coded mobile-first – so styles specific to bigger screens may need to be wrapped in a media query – look at the original CSS file starting on about line 1350 to see how that works.

    If you get stuck on a particular style not working, check for errors using the validator – https://jigsaw.w3.org/css-validator/ first.

    Also, a browser tool like Firebug usually shows you why the code isn’t overriding existing CSS.

    If those still don’t solve it, you can certainly ask here :).

    I was looking to do the same thing myself. Found that removing the following code from content.php works as well.

    <div class="comments-link">
    					<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
    				</div><!-- .comments-link -->
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove "Leave a Reply" to Use Disqus’ is closed to new replies.