Created
December 8, 2015 16:06
-
-
Save anonymous/a2017caadc9687e81dad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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