If you want to remove WordPress Comments through the functions file? Open your activated theme’s functions.php file and add this code to remove comment support for pages.
1 2 3 4 5 6 |
//remove comments from pages add_action('init', 'remove_comment_support', 100); function remove_comment_support() { remove_post_type_support( 'page', 'comments' ); } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.