• I’ve been trying to figure out how to remove the “Leave Reply”, “Categories”, “Meta” from my Twenty Ten 1.3 theme, but have not been able to do this, despite reading all the related threads to this subject.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Edit style.css under Appearance Editor

    find

    h3#reply-title {
        margin: 18px 0;
    }

    change to

    h3#reply-title {
        display: none;
    }

    The best way to do it is to look through the template files in your theme, and remove this line where ever it’s found:

    comments_popup_link()

    There will be more to the actual function then that, but thats what you need to remove. Look in your templates files and basically delete any part of them that refers to comments in any way.

    Remember that there can be several templates for your pages, and each one can have this, so there can be a bit of tracking down to do to get rid of them all.

    michael.mariart, I would stick with the CSS suggestion because it’s way less invasive, and will continue working even if you upgrade the theme.

    That’s true if you are using a theme that you are modifying, but we should always be using a child theme when doing any sort of theme updates at all. ??

    And besides, if the theme is updated, don’t the CSS changes get over-written too, so you’d loose that anyway? Or are changes to the styles.css file done through the editor stored somewhere else?

    Brandon Kraft

    (@kraftbj)

    Code Wrangler

    A child theme doesn’t require all of those template files, though.

    A simple Twenty Ten child that would do what mrojas requested could be a single file (/themes/twentyten-mrojas/style.css with the following:

    /*
    Theme Name: TwentyTen and MRojas
    Description: Magic made by MRojas based on TwentyTen
    Author: mrojas
    Template: twentyten
    */
    
    @import url("../twentyten/style.css");
    
    h3#reply-title {
        display: none;
    }

    More importantly, Mrojas – did this answer your question? Or are you referring to the “Meta” widget on the right-hand side? Or both? Both plus?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to remove "Leave Reply" from all pages’ is closed to new replies.