diff --git a/wp-content/themes/twentythirteen/inc/custom-header.php b/wp-content/themes/twentythirteen/inc/custom-header.php index b6d829ac79..15fa5253e8 100644 --- a/wp-content/themes/twentythirteen/inc/custom-header.php +++ b/wp-content/themes/twentythirteen/inc/custom-header.php @@ -96,7 +96,7 @@ function twentythirteen_header_style() { ?> .site-title, .site-description { - position: absolute !important; + position: absolute; clip: rect(1px 1px 1px 1px); /* IE7 */ clip: rect(1px, 1px, 1px, 1px); } diff --git a/wp-content/themes/twentythirteen/js/theme-customizer.js b/wp-content/themes/twentythirteen/js/theme-customizer.js index be1b67b25b..d38ab2d65b 100644 --- a/wp-content/themes/twentythirteen/js/theme-customizer.js +++ b/wp-content/themes/twentythirteen/js/theme-customizer.js @@ -20,7 +20,21 @@ // Header text color. wp.customize( 'header_textcolor', function( value ) { value.bind( function( to ) { - $( '.site-title, .site-description' ).css( 'color', to ); + if ( 'blank' == to ) { + if ( 'remove-header' == _wpCustomizeSettings.values.header_image ) + $( '#masthead hgroup' ).css( 'min-height', '0' ); + $( '.site-title, .site-description' ).css( { + 'clip': 'rect(1px, 1px, 1px, 1px)', + 'position': 'absolute' + } ); + } else { + $( '#masthead hgroup' ).css( 'min-height', '230px' ); + $( '.site-title, .site-description' ).css( { + 'clip': 'auto', + 'color': to, + 'position': 'relative' + } ); + } } ); } ); } )( jQuery );