2021-07-23 11:58:50 +02:00
|
|
|
( function( $ ){
|
|
|
|
|
wp.customize( 'blogname', function( value ) {
|
|
|
|
|
value.bind( function( to ) {
|
|
|
|
|
$( '#site-title a' ).text( to );
|
|
|
|
|
} );
|
|
|
|
|
} );
|
|
|
|
|
wp.customize( 'blogdescription', function( value ) {
|
|
|
|
|
value.bind( function( to ) {
|
|
|
|
|
$( '#site-description' ).text( to );
|
|
|
|
|
} );
|
|
|
|
|
} );
|
|
|
|
|
|
|
|
|
|
// Header text color.
|
|
|
|
|
wp.customize( 'header_textcolor', function( value ) {
|
|
|
|
|
value.bind( function( to ) {
|
|
|
|
|
if ( 'blank' === to ) {
|
|
|
|
|
$( '#site-title, #site-title a, #site-description' ).css( {
|
2025-04-25 12:30:07 +02:00
|
|
|
'clip-path': 'inset(50%)',
|
2021-07-23 11:58:50 +02:00
|
|
|
'position': 'absolute'
|
|
|
|
|
} );
|
|
|
|
|
} else {
|
|
|
|
|
$( '#site-title, #site-title a, #site-description' ).css( {
|
2025-04-25 12:30:07 +02:00
|
|
|
'clip-path': 'none',
|
2021-07-23 11:58:50 +02:00
|
|
|
'color': to,
|
|
|
|
|
'position': 'relative'
|
|
|
|
|
} );
|
|
|
|
|
}
|
|
|
|
|
} );
|
|
|
|
|
} );
|
2025-04-25 12:30:07 +02:00
|
|
|
} )( jQuery );
|