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');
// 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.

Share This Article

Subscribe Membership Plan ($9.99/mo)

  • Get full access to all premium tutorials
  • Get Support for the posted content
  • Request for specific how-to tutorials
  • Cancel the subscription at anytime

Reader Interactions

Leave A Reply

Your email address will not be published. Required fields are marked *