2012-05-25 23:50:01 +02:00
|
|
|
( function( $ ){
|
|
|
|
wp.customize( 'blogname', function( value ) {
|
|
|
|
value.bind( function( to ) {
|
2013-02-15 17:53:58 +01:00
|
|
|
$( '#site-title a' ).text( to );
|
2012-05-25 23:50:01 +02:00
|
|
|
} );
|
|
|
|
} );
|
|
|
|
wp.customize( 'blogdescription', function( value ) {
|
|
|
|
value.bind( function( to ) {
|
2013-02-15 17:53:58 +01:00
|
|
|
$( '#site-description' ).text( to );
|
2012-05-25 23:50:01 +02:00
|
|
|
} );
|
|
|
|
} );
|
2015-04-01 23:42:27 +02:00
|
|
|
|
2020-01-29 01:45:18 +01:00
|
|
|
// Header text color.
|
2015-04-01 23:42:27 +02: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 23:50:01 +02:00
|
|
|
} )( jQuery );
|