Make WordPress Core

Changeset 30272


Ignore:
Timestamp:
11/07/2014 05:30:29 PM (12 years ago)
Author:
iandstewart
Message:

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

Props iamtakashi, iandstewart, fixes #30165.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/inc/customizer.php

    r30271 r30272  
    4343
    4444        $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_textcolor', array(
    45                 'label'   => esc_html__( 'Header & Sidebar Text Color', 'twentyfifteen' ),
    46                 'section' => 'colors',
     45                'label'       => esc_html__( 'Header and Sidebar Text Color', 'twentyfifteen' ),
     46                'description' => esc_html__( 'Only applied to the sidebar on wider screens. On small screens the sidebar will become the header.', 'twentyfifteen' ),
     47                'section'     => 'colors',
    4748        ) ) );
    4849
     
    5758
    5859        $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array(
    59                 'label'   => esc_html__( 'Header & Sidebar Background Color', 'twentyfifteen' ),
    60                 'section' => 'colors',
     60                'label'       => esc_html__( 'Header and Sidebar Background Color', 'twentyfifteen' ),
     61                'description' => esc_html__( 'Only applied to the sidebar on wider screens. On small screens the sidebar will become the header.', 'twentyfifteen' ),
     62                'section'     => 'colors',
    6163        ) ) );
     64
     65        // Add an additional description to the header image section.
     66        $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' );
    6267}
    6368add_action( 'customize_register', 'twentyfifteen_customize_register', 11 );
Note: See TracChangeset for help on using the changeset viewer.