(function( $ ) { "use strict"; // Background wp.customize( 'bg_color_setting', function( value ) { value.bind( function( to ) { $( 'body' ).css( 'background-color', to ); } ); } ); // Global Skin color wp.customize( 'global_color', function( value ) { value.bind( function( to ) { $( '#searchbutton, #searchsubmit, #submitcomment' ).css( 'background-color', to ); $( '.menu-holder ul li a, #readmore a, .postdate a:hover, #breadcrumbs li a, .next-page a strong, .prev-page a strong, span.tags a:hover, #copyrights a:hover, .single-content-holder a' ).css( 'color', to ); } ); } ); // Post title color wp.customize( 'post_title_color', function( value ) { value.bind( function( to ) { $( '.posttitle h2 a, #title h3 a, #title h3' ).css( 'color', to ); } ); } ); // Content Color wp.customize( 'content_color', function( value ) { value.bind( function( to ) { $( '.posttextcontent p, #singlecontent p, #content p, body, .zc a, #thearchivelist a' ).css( 'color', to ); } ); } ); // Heading Color wp.customize( 'heading_color', function( value ) { value.bind( function( to ) { $( '.page-content h1, .page-content h2, .page-content h3, .page-content h4, .page-content h5, .page-content h6, #singlecontent h1, #singlecontent h2, #singlecontent h3, #singlecontent h4, #singlecontent h5, #singlecontent h6 ' ).css( 'color', to ); } ); } ); // Sidebar Title Color wp.customize( 'sidebar_heading_color', function( value ) { value.bind( function( to ) { $( 'aside li h2' ).css( 'color', to ); } ); } ); })( jQuery );