Wordpress/wp-content/themes/twentythirteen/js/theme-customizer.js
Lance Willett fb4ae83cc5 Twenty Thirteen: header area with no site title or tagline should still be clickable to home. Fixes #23549.
Fix also removes several `!important` flags that aren't necessary, relating to header text color.

git-svn-id: https://develop.svn.wordpress.org/trunk@23492 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-26 04:50:09 +00:00

20 lines
538 B
JavaScript

/**
* Theme Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
* Things like site title and description changes.
*/
( function( $ ) {
// Site title and description.
wp.customize( 'blogname', function( value ) {
value.bind( function( to ) {
$( '.site-title' ).text( to );
} );
} );
wp.customize( 'blogdescription', function( value ) {
value.bind( function( to ) {
$( '.site-description' ).text( to );
} );
} );
} )( jQuery );