Unregister the ‘Comments and Trackbacks’ section in the admin

Removing the ‘Comments and Trackbacks’ from Genesis Theme Settings & Customizer page.

// Removing it from Genesis Theme Settings page
if (is_admin()) :
  function remove_genesis_comments_trackbacks_settings($pagehook) {
  	remove_meta_box( 'genesis-theme-settings-comments', $pagehook, 'main' ); 
  }
  add_action( 'genesis_theme_settings_metaboxes' , 'remove_genesis_comments_trackbacks_settings');
endif;
// Removing it from Customizer page
add_action( 'customize_register', 'gd_remove_customize_section', 20 );
function gd_remove_customize_section($wp_customize){
  $wp_customize->remove_section( 'genesis_comments');
}

All code will go in functions.php file.

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.