Twenty Fourteen: add contextual help text to Background and Colors controls in Customizer, using the description field. Props rachelbaker, see #25869.

Built from https://develop.svn.wordpress.org/trunk@26038


git-svn-id: http://core.svn.wordpress.org/trunk@25967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-11-07 20:28:11 +00:00
parent 5420155231
commit 996e9823d7

View File

@ -19,6 +19,21 @@ function twentyfourteen_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
// Add custom description to colors section.
$wp_customize->add_section( 'colors', array(
'title' => __( 'Colors', 'twentyfourteen' ),
'description' => __( 'Background may only be visible on wide screens.', 'twentyfourteen' ),
'priority' => 40,
) );
// Add custom description to background image section.
$wp_customize->add_section( 'background_image', array(
'title' => __( 'Background Image', 'twentyfourteen' ),
'description' => __( 'Background may only be visible on wide screens.', 'twentyfourteen' ),
'theme_supports' => 'custom-background',
'priority' => 80,
) );
// Add the custom accent color setting and control.
$wp_customize->add_setting( 'accent_color', array(
'default' => '#24890d',