This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
2012-11-28 22:51:38 +00: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 18:50:34 +00:00
|
|
|
$( '.site-title a' ).text( to );
|
2012-11-28 22:51:38 +00:00
|
|
|
} );
|
|
|
|
} );
|
|
|
|
wp.customize( 'blogdescription', function( value ) {
|
|
|
|
value.bind( function( to ) {
|
2013-02-07 18:50:34 +00:00
|
|
|
$( '.site-description' ).text( to );
|
2012-11-28 22:51:38 +00:00
|
|
|
} );
|
|
|
|
} );
|
2013-03-05 00:13:56 +00: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 22:51:38 +00:00
|
|
|
} )( jQuery );
|