Support » Theme: Scrappy » How to remove comment form?

  • Resolved Miss Bee


    First, huge thanks to Caroline for this fab theme! I’m using it for my wedding website and it looks great.

    However, I’d like to remove the comment form template from the pages (I’m not using it as a blog).

    I’ve disallowed comments in my account options and I’ve fiddled around with the code to try to remove it that way.

    I did manage to get rid of it, but at th cost of messing up the entire page!

    So, please can anyone let me know what I need to change/edit to remove the comment form?

    Thanks very much!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p


    try adding this snippet to your theme’s functions.php:

    // Removes from post and pages
    add_action('init', 'remove_comment_support', 100);
    function remove_comment_support() {
        remove_post_type_support( 'post', 'comments' );
        remove_post_type_support( 'page', 'comments' );
    Theme Author Caroline Moore


    You should be able to do this by closing comments on all your already-published posts and/or pages.

    Disabling comments in Settings -> Discussion disables them for all future posts and pages, not current ones. You do that individually, editing each page and unchecking the “Allow comments” box.

    If you do add the above code, I would do so in a child theme so it doesn’t get overwritten by future theme updates.

    Good luck (and congratulations!)

    Hi t-p, Caroline

    Thanks for your help!

    I used Caroline’s suggestion as it was the safest, rather than me tinkering with code. WordPress does hide that box though, doesn’t it?

    Thank you again!

    Moderator t-p


    Once you disable comments in seetings,it shouldhide the comment box.

    Please follow my tutorial (in bahasa Indonesia 🙂

    but the script would be different if different theme

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to remove comment form?’ is closed to new replies.