Merge branch 'custom_header_fix' of https://github.com/iamtakashi/_s
into iamtakashi-custom_header_fix Conflicts: inc/custom-header.php
This commit is contained in:
commit
f0ed253d5b
4 changed files with 90 additions and 63 deletions
|
@ -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