Twenty Eleven
[resolved] static website - how can I remove comments template? (7 posts)

  1. elisabeth2
    Posted 3 years ago #


    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!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    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.

  3. samanthassj
    Posted 3 years ago #

    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.

  4. elisabeth2
    Posted 3 years ago #

    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

  5. Edward R. Jenkins
    Posted 3 years ago #

    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.

  6. dragonfly66
    Posted 3 years ago #

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

  7. needhelprightnow
    Posted 2 years ago #

    [ 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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic