Twenty Fourteen: better override for Background and Colors descriptions in Customizer, props obenland. See #25869.
git-svn-id: https://develop.svn.wordpress.org/trunk@26039 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d3bd9f465c
commit
f7c0b07d98
|
@ -19,20 +19,9 @@ 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 custom description to Colors and Background sections.
|
||||
$wp_customize->get_section( 'colors' )->description = __( 'Background may only be visible on wide screens.', 'twentyfourteen' );
|
||||
$wp_customize->get_section( 'background_image' )->description = __( 'Background may only be visible on wide screens.', 'twentyfourteen' );
|
||||
|
||||
// Add the custom accent color setting and control.
|
||||
$wp_customize->add_setting( 'accent_color', array(
|
||||
|
|
Loading…
Reference in New Issue