- Timestamp:
- 11/04/2014 06:41:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/inc/customizer.php
r30208 r30230 36 36 ) ); 37 37 38 // Add custom sidebar text color setting and control.38 // Add custom header and sidebar text color setting and control. 39 39 $wp_customize->add_setting( 'sidebar_textcolor', array( 40 40 'default' => $color_scheme[4], … … 43 43 44 44 $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_textcolor', array( 45 'label' => __( 'Sidebar Text Color', 'twentyfifteen' ),45 'label' => esc_html__( 'Header & Sidebar Text Color', 'twentyfifteen' ), 46 46 'section' => 'colors', 47 47 ) ) ); 48 48 49 // Add custom header background color setting and control. 49 // Remove the core header textcolor control, as it shares the sidebar text color. 50 $wp_customize->remove_control( 'header_textcolor' ); 51 52 // Add custom header and sidebar background color setting and control. 50 53 $wp_customize->add_setting( 'header_background_color', array( 51 54 'default' => $color_scheme[1], … … 54 57 55 58 $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array( 56 'label' => esc_html__( 'Header & Sidebar Background Color', 'twentyfifteen' ),59 'label' => esc_html__( 'Header & Sidebar Background Color', 'twentyfifteen' ), 57 60 'section' => 'colors', 58 61 ) ) );
Note: See TracChangeset
for help on using the changeset viewer.