Ticket #23600: 23600.2.patch
| File 23600.2.patch, 2.1 KB (added by lancewillett, 4 months ago) |
|---|
-
wp-content/themes/twentytwelve/js/theme-customizer.js
17 17 $( '.site-description' ).text( to ); 18 18 } ); 19 19 } ); 20 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 21 27 // Hook into background color/image change and adjust body class value as needed. 22 28 wp.customize( 'background_color', function( value ) { 23 29 value.bind( function( to ) { -
wp-content/themes/twentytwelve/functions.php
437 437 * @return void 438 438 */ 439 439 function twentytwelve_customize_register( $wp_customize ) { 440 $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 441 $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 440 $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 441 $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 442 $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; 442 443 } 443 444 add_action( 'customize_register', 'twentytwelve_customize_register' ); 444 445 -
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- titlea,81 .site- description{82 color: #<?php echo $text_color; ?> !important;80 .site-header h1 a, 81 .site-header h2 { 82 color: #<?php echo $text_color; ?>; 83 83 } 84 84 <?php endif; ?> 85 85 </style>