2012-11-28 14:51:38 -08:00
|
|
|
/**
|
|
|
|
* Theme Customizer enhancements for a better user experience.
|
|
|
|
*
|
|
|
|
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
|
|
|
|
*/
|
|
|
|
|
|
|
|
( function( $ ) {
|
|
|
|
// Site title and description.
|
|
|
|
wp.customize( 'blogname', function( value ) {
|
|
|
|
value.bind( function( to ) {
|
2013-02-07 10:50:34 -08:00
|
|
|
$( '.site-title a' ).text( to );
|
2012-11-28 14:51:38 -08:00
|
|
|
} );
|
|
|
|
} );
|
|
|
|
wp.customize( 'blogdescription', function( value ) {
|
|
|
|
value.bind( function( to ) {
|
2013-02-07 10:50:34 -08:00
|
|
|
$( '.site-description' ).text( to );
|
2012-11-28 14:51:38 -08:00
|
|
|
} );
|
|
|
|
} );
|
2013-03-04 16:13:56 -08:00
|
|
|
// Header text color.
|
|
|
|
wp.customize( 'header_textcolor', function( value ) {
|
|
|
|
value.bind( function( to ) {
|
|
|
|
$( '.site-title a, .site-description' ).css( 'color', to );
|
|
|
|
} );
|
|
|
|
} );
|
2012-11-28 14:51:38 -08:00
|
|
|
} )( jQuery );
|