Fixes the broken display header text option in the Customizer.
This commit is contained in:
parent
790b765ac2
commit
8ceefdcdeb
3 changed files with 16 additions and 10 deletions
|
@ -8,7 +8,7 @@
|
|||
// Site title and description.
|
||||
wp.customize( 'blogname', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.site-title a' ).text( to );
|
||||
$( '.site-title' ).text( to );
|
||||
} );
|
||||
} );
|
||||
wp.customize( 'blogdescription', function( value ) {
|
||||
|
@ -19,7 +19,18 @@
|
|||
// Header text color.
|
||||
wp.customize( 'header_textcolor', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.site-title a, .site-description' ).css( 'color', to );
|
||||
if ( 'blank' == to ) {
|
||||
$( '.site-title, .site-description' ).css( {
|
||||
'clip': 'rect(1px, 1px, 1px, 1px)',
|
||||
'position': 'absolute'
|
||||
} );
|
||||
} else {
|
||||
$( '.site-title, .site-description' ).css( {
|
||||
'clip': 'auto',
|
||||
'color': to,
|
||||
'position': 'relative'
|
||||
} );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
} )( jQuery );
|
Loading…
Add table
Add a link
Reference in a new issue