WordPress.org

Ready to get started?Download WordPress

Forums

How to remove "Leave Reply" from all pages (6 posts)

  1. mrojas
    Member
    Posted 2 years ago #

    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.

  2. Aaron
    Member
    Posted 2 years ago #

    Edit style.css under Appearance Editor

    find

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

    change to

    h3#reply-title {
        display: none;
    }
  3. michael.mariart
    Member
    Posted 2 years ago #

    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.

  4. Matt Mullenweg
    Troublemaker
    Posted 2 years ago #

    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.

  5. michael.mariart
    Member
    Posted 2 years ago #

    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?

  6. Brandon Kraft
    Happiness Engineer
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic