Twenty Fifteen: adding help text to explain how color changes to header and sidebar are affected by responsive design.

Props iamtakashi, iandstewart, fixes #30165.



git-svn-id: https://develop.svn.wordpress.org/trunk@30272 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ian Stewart 2014-11-07 17:30:29 +00:00
parent 79ba410eae
commit 8102942f58
1 changed files with 9 additions and 4 deletions

View File

@ -42,7 +42,8 @@ function twentyfifteen_customize_register( $wp_customize ) {
) ); ) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_textcolor', array( $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_textcolor', array(
'label' => esc_html__( 'Header & Sidebar Text Color', 'twentyfifteen' ), 'label' => esc_html__( 'Header and Sidebar Text Color', 'twentyfifteen' ),
'description' => esc_html__( 'Only applied to the sidebar on wider screens. On small screens the sidebar will become the header.', 'twentyfifteen' ),
'section' => 'colors', 'section' => 'colors',
) ) ); ) ) );
@ -56,9 +57,13 @@ function twentyfifteen_customize_register( $wp_customize ) {
) ); ) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array( $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array(
'label' => esc_html__( 'Header & Sidebar Background Color', 'twentyfifteen' ), 'label' => esc_html__( 'Header and Sidebar Background Color', 'twentyfifteen' ),
'description' => esc_html__( 'Only applied to the sidebar on wider screens. On small screens the sidebar will become the header.', 'twentyfifteen' ),
'section' => 'colors', 'section' => 'colors',
) ) ); ) ) );
// Add an additional description to the header image section.
$wp_customize->get_section( 'header_image' )->description = esc_html__( 'Only applied to the sidebar on wide screens. On small screens it will be applied to the header.', 'twentyfifteen' );
} }
add_action( 'customize_register', 'twentyfifteen_customize_register', 11 ); add_action( 'customize_register', 'twentyfifteen_customize_register', 11 );