Ticket #23600: 23600.diff
File 23600.diff, 2.4 KB (added by , 11 years ago) |
---|
-
wp-content/themes/twentytwelve/functions.php
436 436 function twentytwelve_customize_register( $wp_customize ) { 437 437 $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 438 438 $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 439 $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; 439 440 } 440 441 add_action( 'customize_register', 'twentytwelve_customize_register' ); 441 442 … … 445 446 * @since Twenty Twelve 1.0 446 447 */ 447 448 function twentytwelve_customize_preview_js() { 448 wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '201 20827', true );449 wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20130225', true ); 449 450 } 450 451 add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' ); -
wp-content/themes/twentytwelve/inc/custom-header.php
77 77 // If the user has set a custom color for the text, use that. 78 78 else : 79 79 ?> 80 .site-title a, 81 .site-description { 82 color: #<?php echo $text_color; ?> !important; 80 .site-header h1 a, 81 .site-header h1 a:hover, 82 .site-header h2 { 83 color: #<?php echo $text_color; ?>; 83 84 } 84 85 <?php endif; ?> 85 86 </style> -
wp-content/themes/twentytwelve/js/theme-customizer.js
18 18 } ); 19 19 } ); 20 20 21 // Header text color 22 wp.customize( 'header_textcolor', function( value ) { 23 value.bind( function( to ) { 24 $( '.site-header h1 a, .site-header h2' ).css( 'color', to ); 25 } ); 26 } ); 27 21 28 // Hook into background color change and adjust body class value as needed. 22 29 wp.customize( 'background_color', function( value ) { 23 30 value.bind( function( to ) {