Browse Source

Move customizer hide controls to the main functions.php file.

Kjell Reigstad 4 years ago
parent
commit
f948551112
2 changed files with 6 additions and 2 deletions
  1. 6 0
      blank-canvas/functions.php
  2. 0 2
      blank-canvas/inc/wpcom.php

+ 6 - 0
blank-canvas/functions.php

@@ -115,6 +115,12 @@ function blank_canvas_remove_customizer_settings( $wp_customize ) {
 		$wp_customize->remove_control( 'jetpack_content_author_bio' );
 	}
 
+	// Remove Seedlet's header and footer hide options,
+	// since they're already hidden by default.
+	$wp_customize->remove_control( 'hide_site_header' );
+	$wp_customize->remove_control( 'hide_site_footer' );
+
+
 	// Add a Customizer message about the site title & tagline options.
 	$wp_customize->get_section( 'title_tagline' )->description = __( 'This theme is designed to hide the site logo, site title, and tagline on all single posts and pages.', 'blank-canvas' );
 }

+ 0 - 2
blank-canvas/inc/wpcom.php

@@ -12,7 +12,5 @@
  */
 function blank_canvas_wpcom_customize_update( $wp_customize ) {
 	$wp_customize->remove_control( 'hide_front_page_title');
-	$wp_customize->remove_control( 'hide_site_header' );
-	$wp_customize->remove_control( 'hide_site_footer' );
 }
 add_action( 'customize_register', 'blank_canvas_wpcom_customize_update', 11 );