/** * File customizer.js. * * Theme Customizer enhancements for a better user experience. * * Contains handlers to make Theme Customizer preview reload changes asynchronously. */ ( function( $ ) { 'use strict'; // 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 ); } ); } ); // Header text color. wp.customize( 'header_textcolor', function( value ) { value.bind( function( to ) { if ( 'blank' === to ) { $( '.site-title' ).css( { 'clip': 'rect(1px, 1px, 1px, 1px)', 'position': 'absolute' } ); } else { $( '.site-title' ).css( { 'clip': 'auto', 'position': 'relative' } ); $( '.site-title a' ).css( { 'color': to } ); } } ); } ); wp.customize( 'allrounder_news_top_header_text', function( value ) { value.bind( function( to ) { $( '.date-meta span' ).text( to ); } ); } ); wp.customize( 'allrounder_news_sidebar_social_icon_text', function( value ) { value.bind( function( to ) { $( '.sidebar-social-icon-title' ).text( to ); } ); } ); wp.customize( 'allrounder_news_footer_social_icon_text', function( value ) { value.bind( function( to ) { $( '.footer-brand h2' ).text( to ); } ); } ); wp.customize( 'allrounder_news_footer_social_icon_text_2', function( value ) { value.bind( function( to ) { $( '.footer-social span' ).text( to ); } ); } ); wp.customize( 'allrounder_news_copyright_text', function( value ) { value.bind( function( to ) { $( '.footer-copyright .copyright-text' ).text( to ); } ); } ); } )( jQuery );