Support » Theme: thememagic » Remove comments

  • Hi
    I m having problems removing comments form below post(Leave a Reply, submit…). I have checked everywhere. Please tell how can i do that?
    Thank you

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


    Just to make sure, do you want to remove the entire comment form or just the wording “Leave a Reply”?

    I want to remove entire comment form from any pages and posts like this which are showing in bottom.

    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' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove comments’ is closed to new replies.