Changeset 23572
- Timestamp:
- 03/01/2013 05:45:59 PM (12 years ago)
- Location:
- trunk/wp-content/themes/twentytwelve
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/functions.php
r23568 r23572 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' ); -
trunk/wp-content/themes/twentytwelve/inc/custom-header.php
r22573 r23572 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; ?> -
trunk/wp-content/themes/twentytwelve/js/theme-customizer.js
r23568 r23572 16 16 value.bind( function( to ) { 17 17 $( '.site-description' ).text( to ); 18 } ); 19 } ); 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 ); 18 24 } ); 19 25 } );
Note: See TracChangeset
for help on using the changeset viewer.