laipower/wp-content/plugins/gp-premium/copyright/functions/js/customizer.js

20 lines
487 B
JavaScript
Raw Normal View History

2020-04-07 13:03:04 +00:00
/**
* Theme Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
*/
( function( $ ) {
// Update the site title in real time...
wp.customize( 'generate_copyright', function( value ) {
value.bind( function( newval ) {
if ( $( '.copyright-bar' ).length ) {
$( '.copyright-bar' ).html( newval );
} else {
$( '.inside-site-info' ).html( newval );
}
} );
} );
} )( jQuery );