Remove comments


I am trying to remove the comment block from my template even if the comments are unable for my post. i've tried using:


but still the comments show up


On your child theme, functions.php:

if ( statement ) {

 // Remove comments counter in the post metadata.
    beans_add_filter( 'beans_post_meta_items', array(
   'date'   => 10,
   'author' => 20,
    ) );

 // Remove comments template.
  beans_remove_action( 'beans_comments_template' );


Write a reply

Login or register to write a reply, it's free!