Make WordPress Core

Changeset 26038


Ignore:
Timestamp:
11/07/2013 08:27:05 PM (10 years ago)
Author:
lancewillett
Message:

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

File:
1 edited

Legend:

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

    r26037 r26038  
    1919    $wp_customize->get_setting( 'blogname' )->transport        = 'postMessage';
    2020    $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
     21
     22    // Add custom description to colors section.
     23    $wp_customize->add_section( 'colors', array(
     24        'title'          => __( 'Colors',  'twentyfourteen' ),
     25        'description'    => __( 'Background may only be visible on wide screens.', 'twentyfourteen' ),
     26        'priority'       => 40,
     27    ) );
     28
     29    // Add custom description to background image section.
     30    $wp_customize->add_section( 'background_image', array(
     31        'title'          => __( 'Background Image', 'twentyfourteen' ),
     32        'description'    => __( 'Background may only be visible on wide screens.', 'twentyfourteen' ),
     33        'theme_supports' => 'custom-background',
     34        'priority'       => 80,
     35    ) );
    2136
    2237    // Add the custom accent color setting and control.
Note: See TracChangeset for help on using the changeset viewer.