Archive | June 2012

Hybrid – Disable Comment on Page

We don’t really want comment section on our pages. Using hybrid, we can disable all comment on page. First, create an empty file called no-comment.php (or any name you want to use). Add this code to functions.php file:

add_filter( 'comments_template', 'remove_comments_template_on_pages', 11 );
function remove_comments_template_on_pages( $file ) {
if ( is_page() )
$file = STYLESHEETPATH . '/no-comments.php';
return $file;

That’s all.