Ticket #23585: 23585.2.diff
File 23585.2.diff, 2.4 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentythirteen/functions.php
552 552 * @return void 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' ); 559 560 … … 564 565 * @since Twenty Thirteen 1.0 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' ), '20130225', true ); 568 569 } 569 570 add_action( 'customize_preview_init', 'twentythirteen_customize_preview_js' ); 570 571 -
wp-content/themes/twentythirteen/js/theme-customizer.js
17 17 $( '.site-description' ).text( to ); 18 18 } ); 19 19 } ); 20 } )( jQuery ); 21 No newline at end of file 20 // Header text color 21 wp.customize( 'header_textcolor', function( value ) { 22 value.bind( function( to ) { 23 $( '.site-title a, .site-description' ).css( 'color', to ); 24 } ); 25 } ); 26 } )( jQuery ); -
wp-content/themes/twentythirteen/inc/custom-header.php
114 114 ?> 115 115 .site-title a, 116 116 .site-description { 117 color: #<?php echo esc_attr( $text_color ); ?> !important;117 color: #<?php echo esc_attr( $text_color ); ?>; 118 118 } 119 119 <?php endif; ?> 120 120 </style>