Changeset 23493
- Timestamp:
- 02/26/2013 04:59:35 AM (12 years ago)
- Location:
- trunk/wp-content/themes/twentythirteen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentythirteen/functions.php
r23469 r23493 553 553 */ 554 554 function twentythirteen_customize_register( $wp_customize ) { 555 $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 556 $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 555 $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 556 $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 557 $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; 557 558 } 558 559 add_action( 'customize_register', 'twentythirteen_customize_register' ); … … 565 566 */ 566 567 function twentythirteen_customize_preview_js() { 567 wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '201302 13', true );568 wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20130226', true ); 568 569 } 569 570 add_action( 'customize_preview_init', 'twentythirteen_customize_preview_js' ); -
trunk/wp-content/themes/twentythirteen/js/theme-customizer.js
r23492 r23493 18 18 } ); 19 19 } ); 20 // Header text color. 21 wp.customize( 'header_textcolor', function( value ) { 22 value.bind( function( to ) { 23 $( '.site-title, .site-description' ).css( 'color', to ); 24 } ); 25 } ); 20 26 } )( jQuery );
Note: See TracChangeset
for help on using the changeset viewer.