Skip to content

Instantly share code, notes, and snippets.

/echtzeit.js
Created Dec 8, 2015

Embed
What would you like to do?
/**
* Das für die Live-Ansicht nötige jQuery
*/
(function($){
// Die Echtzeitansicht des Website-Namens
wp.customize( 'blogname', function( value ) {
value.bind( function( to ) {
$( '.site-title a' ).text( to );
} );
} );
// Die Echtzeitansicht der Website-Beschreibung
wp.customize( 'blogdescription', function( value ) {
value.bind( function( to ) {
$( '.site-description' ).text( to );
} );
} );
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.