Support » Themes and Templates » How to remove comments from certain 2010 templates

  • I know people can opt out of every page to display comments but I have someone that needs a certain page template without comments. Usually it is pretty easy to comment out the comment section on a page but that isn’t so clear cut with 2010. How can I remove the comments on the one column template of 2010?
    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • esmi

    (@esmi)

    Forum Moderator

    Don’t edit the Twenty Ten theme! Your changes will be over-written the next time you upgrade WordPress or the theme. For this reason, it is recommended that you consider creating a child theme for your customisations.

    Of course I would NEVER edit the 2010 files directly. That defeats the purpose. I have copied the one column template file into the child theme.
    I still need assistance with removing the comments from the 2010 one column template for the child theme.

    Michael

    (@alchymyth)

    Forum Moderator

    have you tried to remove this line from the one column template:

    <?php comments_template( '', true ); ?>

    which file is that in? I looked in pages.php and it’s not in that one?
    Tammy

    Michael

    (@alchymyth)

    Forum Moderator

    have you tried to remove this line from the one column template:

    there is only one ‘one column’ template in the twenty ten theme files: onecolumn-page.php;
    btw: pages.php is not one of the default templates in the twenty ten theme.

    Oh, I was thinking..well lets say I wasn’t thinking … ok, thanks for looking after me on that, I’ll have a look there.
    🙂

    I guess the note with onecolumn-page.php that said no sidebar thru me off, because I want a sidebar, so I didn’t think to look there. – that was it.
    🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to remove comments from certain 2010 templates’ is closed to new replies.