Moderator
t-p
(@t-p)
// 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' );
}
Just add it to your themes function file or make it a plugin.
Thread Starter
user93
(@user93)
Sadly it doesn’t work after i put that codes in my themes function. now i can’t access my admin page anymore..
This is the error:
Parse error: syntax error, unexpected $end in /…/…/…/…/…/…/…/functions.php on line 665..
Thread Starter
user93
(@user93)
and now i fix the error., but still doesn’t work. the comment form still there..
(@user93)
10 years, 4 months ago
I already disable the comment in the setting but when i click on a single post, still there’s a comment form. i don’t want to have any comment because it doesn’t need anymore. Is there any method i could totally disable the comments? More power for those who can help me..