Support » Theme: Twenty Eleven » static website – how can I remove comments template?

  • Resolved elisabeth2



    I would need a static website without the possibility of posts – how can
    I remove the comment-template? I tried to delete it in the function.php
    but after the whole site did not work longer.

    What would be the best solution to remove the option for making comments
    or a reply?

    thanks for any help and advice!

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


    Forum Moderator

    You do not need to delete comments.php from your theme. Restore that file, turn off all commenting on your site and try activating the Akismet plugin.

    This drove me crazy until I discovered that there is a little check box on the Quick Edit page. Not on the Edit page for the same article. Turns comments on or off.

    Hello Esmi & Smanthassj!

    Thanks so much for your advice – I could remove now the comment from the site
    and the Akismet plugin is a good advice!

    it works now! great,
    thanks, lisi

    You can also find the following in the template:

    <?php comments_template(); ?>

    And change it to this:

    <?php // comments_template(); ?>

    That removes the comment template completely, and will remove the default “Comments Are Off” message.

    Wow, in the Quick Comments page. Who would of thought that, Thanks samanthassj!

    [ Moderator note: de-capped. Please do not post in all caps again. It’s considered rude. ]

    thanks samathassj ! thanks so much for your help, that was so simple ! i think it would save alot of time if that option to not allow comments check box was also on the main edit page !!!!!!!!! thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘static website – how can I remove comments template?’ is closed to new replies.