浏览代码

Move the widgets notice to show when the footer is disabled

Ben Dwyer 4 年之前
父节点
当前提交
281e214400
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 2 2
      blank-canvas/assets/customizer.css
  2. 3 3
      blank-canvas/functions.php

+ 2 - 2
blank-canvas/assets/customizer.css

@@ -4,8 +4,7 @@
  * Adjusts the theme's message about the site branding display to appear like a notice.
  */
 
-#sub-accordion-section-menu_locations .customize-section-description,
-#sub-accordion-section-sidebar-widgets-sidebar-1 .customize-section-description {
+#sub-accordion-section-menu_locations .customize-section-description {
 	background: #FFF;
 	border: 1px solid #ccd0d4;
 	border-left: 4px solid #00a0d2;
@@ -16,6 +15,7 @@
 	width: auto;
 }
 
+#sub-accordion-panel-widgets .customize-info .customize-panel-description,
 #sub-accordion-panel-nav_menus .customize-info .customize-panel-description {
 	background: #FFF;
 	border-top: 1px solid #ccd0d4;

+ 3 - 3
blank-canvas/functions.php

@@ -112,9 +112,9 @@ add_action( 'customize_register', 'blank_canvas_remove_customizer_settings', 11
 function blank_canvas_add_customizer_settings( $wp_customize ) {
 
 	// Add a Customizer message about the site title & tagline options.
-	$wp_customize->get_section( 'menu_locations' )->description            = __( 'Menus will only be displayed on this theme if the header or footer is enabled. This can be done in the Content Options section.', 'blank-canvas' );
-	$wp_customize->get_panel( 'nav_menus' )->description                   = __( 'Menus will only be displayed on this theme if the header or footer is enabled. This can be done in the Content Options section.', 'blank-canvas' );
-	$wp_customize->get_section( 'sidebar-widgets-sidebar-1' )->description = __( 'Widgets will only be displayed on this theme if the footer is enabled. This can be done in the Content Options section.', 'blank-canvas' );
+	$wp_customize->get_section( 'menu_locations' )->description = __( 'Menus will only be displayed on this theme if the header or footer is enabled. This can be done in the Content Options section.', 'blank-canvas' );
+	$wp_customize->get_panel( 'nav_menus' )->description        = __( 'Menus will only be displayed on this theme if the header or footer is enabled. This can be done in the Content Options section.', 'blank-canvas' );
+	$wp_customize->get_panel( 'widgets' )->description          = __( 'Widgets will only be displayed on this theme if the footer is enabled. This can be done in the Content Options section.', 'blank-canvas' );
 }
 add_action( 'customize_register', 'blank_canvas_add_customizer_settings', 11 );