Skip to content

Instantly share code, notes, and snippets.

Created December 8, 2015 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/19155972b37be7a9cf37 to your computer and use it in GitHub Desktop.
Save anonymous/19155972b37be7a9cf37 to your computer and use it in GitHub Desktop.
/**
* Das für die Live-Ansicht nötige jQuery
*/
(function($){
// Die Echtzeitansicht des Werbeblocks
wp.customize("werbung_code", function(value) {
value.bind(function(newval) {
$("#werbung_box").html(newval);
} );
});
// 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