Theme Customizer > Theme Options

* Removes sample theme options
* Adds Theme Customizer enhancement (actually working!)

Goal: Emphasize the use of the Customizer versus out of style Theme
Options.
This commit is contained in:
obenland 2012-11-28 14:51:38 -08:00
parent b6b88b4201
commit 181c363800
4 changed files with 51 additions and 308 deletions

19
js/theme-customizer.js Normal file
View 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 );