Move the widgets notice to show when the footer is disabled

This commit is contained in:
Ben Dwyer 2021-01-29 11:18:11 +00:00
parent 55e8a587ce
commit 281e214400
2 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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 );