equal
deleted
inserted
replaced
1 /** |
1 /** |
2 * Theme Customizer enhancements for a better user experience. |
2 * Customizer enhancements for a better user experience. |
3 * |
3 * |
4 * Contains handlers to make Theme Customizer preview reload changes asynchronously. |
4 * Contains handlers to make Customizer preview reload changes asynchronously. |
5 * Things like site title and description changes. |
5 * Things like site title and description changes. |
6 */ |
6 */ |
7 |
7 |
8 ( function( $ ) { |
8 ( function( $ ) { |
9 // Site title and description. |
9 // Site title and description. |
19 } ); |
19 } ); |
20 // Header text color. |
20 // Header text color. |
21 wp.customize( 'header_textcolor', function( value ) { |
21 wp.customize( 'header_textcolor', function( value ) { |
22 value.bind( function( to ) { |
22 value.bind( function( to ) { |
23 if ( 'blank' == to ) { |
23 if ( 'blank' == to ) { |
24 if ( 'remove-header' == _wpCustomizeSettings.values.header_image ) |
24 if ( 'remove-header' == wp.customize.instance( 'header_image' ).get() ) { |
25 $( '.home-link' ).css( 'min-height', '0' ); |
25 $( '.home-link' ).css( 'min-height', '0' ); |
|
26 } |
26 $( '.site-title, .site-description' ).css( { |
27 $( '.site-title, .site-description' ).css( { |
27 'clip': 'rect(1px, 1px, 1px, 1px)', |
28 'clip': 'rect(1px, 1px, 1px, 1px)', |
28 'position': 'absolute' |
29 'position': 'absolute' |
29 } ); |
30 } ); |
30 } else { |
31 } else { |