Follow through with 'customizer' naming convention.
This commit is contained in:
parent
c7d3e37fc6
commit
5bfc37093b
2 changed files with 1 additions and 1 deletions
19
js/customizer.js
Normal file
19
js/customizer.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* Theme Customizer enhancements for a better user experience.
|
||||
*
|
||||
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
|
||||
*/
|
||||
|
||||
( function( $ ) {
|
||||
// Site title and description.
|
||||
wp.customize( 'blogname', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.site-title a' ).html( to );
|
||||
} );
|
||||
} );
|
||||
wp.customize( 'blogdescription', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.site-description' ).html( to );
|
||||
} );
|
||||
} );
|
||||
} )( jQuery );
|
Loading…
Add table
Add a link
Reference in a new issue