forked from mirror/_s
Merge pull request #1034 from joshmcrty/master
Update .site-title styles instead of anchor in customizer script. Closes #990
This commit is contained in:
commit
cc7ca98ab4
|
@ -24,12 +24,12 @@
|
||||||
wp.customize( 'header_textcolor', function( value ) {
|
wp.customize( 'header_textcolor', function( value ) {
|
||||||
value.bind( function( to ) {
|
value.bind( function( to ) {
|
||||||
if ( 'blank' === to ) {
|
if ( 'blank' === to ) {
|
||||||
$( '.site-title a, .site-description' ).css( {
|
$( '.site-title, .site-description' ).css( {
|
||||||
'clip': 'rect(1px, 1px, 1px, 1px)',
|
'clip': 'rect(1px, 1px, 1px, 1px)',
|
||||||
'position': 'absolute'
|
'position': 'absolute'
|
||||||
} );
|
} );
|
||||||
} else {
|
} else {
|
||||||
$( '.site-title a, .site-description' ).css( {
|
$( '.site-title, .site-description' ).css( {
|
||||||
'clip': 'auto',
|
'clip': 'auto',
|
||||||
'position': 'relative'
|
'position': 'relative'
|
||||||
} );
|
} );
|
||||||
|
|
Reference in New Issue