From d3bd9f465c31aa5eb0edceeee4d12632c5b272c9 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 7 Nov 2013 20:27:05 +0000 Subject: [PATCH] Twenty Fourteen: add contextual help text to Background and Colors controls in Customizer, using the `description` field. Props rachelbaker, see #25869. git-svn-id: https://develop.svn.wordpress.org/trunk@26038 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyfourteen/inc/customizer.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/wp-content/themes/twentyfourteen/inc/customizer.php b/src/wp-content/themes/twentyfourteen/inc/customizer.php index d7043df954..4a453b65c2 100644 --- a/src/wp-content/themes/twentyfourteen/inc/customizer.php +++ b/src/wp-content/themes/twentyfourteen/inc/customizer.php @@ -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',