2012-05-25 17:50:01 -04:00
|
|
|
( function( $ ){
|
|
|
|
wp.customize( 'blogname', function( value ) {
|
|
|
|
value.bind( function( to ) {
|
2013-02-15 11:53:58 -05:00
|
|
|
$( '#site-title a' ).text( to );
|
2012-05-25 17:50:01 -04:00
|
|
|
} );
|
|
|
|
} );
|
|
|
|
wp.customize( 'blogdescription', function( value ) {
|
|
|
|
value.bind( function( to ) {
|
2013-02-15 11:53:58 -05:00
|
|
|
$( '#site-description' ).text( to );
|
2012-05-25 17:50:01 -04:00
|
|
|
} );
|
|
|
|
} );
|
2015-04-01 17:42:27 -04:00
|
|
|
|
2020-01-28 19:45:18 -05:00
|
|
|
// Header text color.
|
2015-04-01 17:42:27 -04:00
|
|
|
wp.customize( 'header_textcolor', function( value ) {
|
|
|
|
value.bind( function( to ) {
|
|
|
|
if ( 'blank' === to ) {
|
|
|
|
$( '#site-title, #site-title a, #site-description' ).css( {
|
|
|
|
'clip': 'rect(1px, 1px, 1px, 1px)',
|
|
|
|
'position': 'absolute'
|
|
|
|
} );
|
|
|
|
} else {
|
|
|
|
$( '#site-title, #site-title a, #site-description' ).css( {
|
|
|
|
'clip': 'auto',
|
|
|
|
'color': to,
|
|
|
|
'position': 'relative'
|
|
|
|
} );
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
} );
|
2012-05-25 17:50:01 -04:00
|
|
|
} )( jQuery );
|