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:
obenland 2013-05-28 09:31:59 -07:00
commit f0ed253d5b
4 changed files with 90 additions and 63 deletions

View file

@ -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 );