/** * 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' ).text( to ); } ); } ); wp.customize( 'blogdescription', function( value ) { value.bind( function( to ) { $( '.site-description' ).text( to ); } ); } ); //Socail Icons wp.customize( 'amora_social_1', function( value ) { value.bind( function( to ) { var ClassNew = 'fa fa-' + to; jQuery('#social-icons' ).find( 'i:eq(0)' ).attr( 'class', ClassNew ); }); }); wp.customize( 'amora_social_2', function( value ) { value.bind( function( to ) { var ClassNew = 'fa fa-' + to; jQuery('#social-icons' ).find( 'i:eq(1)' ).attr( 'class', ClassNew ); }); }); wp.customize( 'amora_social_3', function( value ) { value.bind( function( to ) { var ClassNew = 'fa fa-' + to; jQuery('#social-icons' ).find( 'i:eq(2)' ).attr( 'class', ClassNew ); }); }); wp.customize( 'amora_social_4', function( value ) { value.bind( function( to ) { var ClassNew = 'fa fa-' + to; jQuery('#social-icons' ).find( 'i:eq(3)' ).attr( 'class', ClassNew ); }); }); wp.customize( 'amora_social_5', function( value ) { value.bind( function( to ) { var ClassNew = 'fa fa-' + to; jQuery('#social-icons' ).find( 'i:eq(4)' ).attr( 'class', ClassNew ); }); }); wp.customize( 'amora_social_6', function( value ) { value.bind( function( to ) { var ClassNew = 'fa fa-' + to; jQuery('#social-icons' ).find( 'i:eq(5)' ).attr( 'class', ClassNew ); }); }); wp.customize( 'amora_social_7', function( value ) { value.bind( function( to ) { var ClassNew = 'fa fa-' + to; jQuery('#social-icons' ).find( 'i:eq(6)' ).attr( 'class', ClassNew ); }); }); } )( jQuery );