/**
* File customizer.js.
* Theme Customizer enhancements for a better user experience.
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
*/
( function( $ ) {
$head = $('head');
// Hide the element
function hideElement( element ) {
$( element ).css({
clip: 'rect(1px, 1px, 1px, 1px)',
position: 'absolute',
width: '1px',
height: '1px',
overflow: 'hidden'
});
}
// Show when you need a relative position
function showElement( element ) {
$( element ).css({
clip: 'auto',
position: 'relative',
width: 'auto',
height: 'auto',
overflow: 'visible'
});
}
// Show when you need an absolute position
function showElementabs( element ) {
$( element ).css({
clip: 'auto',
position: 'absolute',
width: 'auto',
height: 'auto',
overflow: 'visible'
});
}
/* =======================
Text based previews
======================= */
// Site title.
wp.customize( 'blogname', function( value ) {
value.bind( function( newval ) {
$( '#site-title' ).html( newval );
} );
} );
// Site description.
wp.customize( 'blogdescription', function( value ) {
value.bind( function( newval ) {
$( '#site-description' ).html( newval );
} );
} );
// Default blog title text
wp.customize( 'ariele_lite_default_blog_title', function( value ) {
value.bind( function( newval ) {
$( '.blog #page-title' ).html( newval );
} );
} );
// Default blog intro text
wp.customize( 'ariele_lite_default_blog_intro', function( value ) {
value.bind( function( newval ) {
$( '.blog #blog-description' ).html( newval );
} );
} );
// More link text
wp.customize( 'ariele_lite_more_link_text', function( value ) {
value.bind( function( newval ) {
$( '.more-link' ).html( newval );
} );
} );
// Featured label
wp.customize( 'ariele_lite_featured_label', function( value ) {
value.bind( function( newval ) {
$( '.featured-label' ).html( newval );
} );
} );
// Related post title
wp.customize( 'ariele_lite_related_posts_title', function( value ) {
value.bind( function( newval ) {
$( '#related-posts-header' ).html( newval );
} );
} );
// Copyright
wp.customize( 'ariele_lite_copyright', function( value ) {
value.bind( function( newval ) {
$( '#copyright-name' ).html( newval );
} );
} );
/* =======================
Show or hide previews
======================= */
// Show hide site title
wp.customize( 'ariele_lite_hide_site_title', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '#site-title' );
} else {
hideElement( '#site-title' );
}
} );
} );
// Show hide site tagline
wp.customize( 'ariele_lite_hide_site_desc', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '#site-description' );
} else {
hideElement( '#site-description' );
}
} );
} );
// Show hide blog heading group
wp.customize( 'ariele_lite_hide_blog_heading', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.blog #page-header' );
} else {
hideElement( '.blog #page-header' );
}
} );
} );
// Show hide blog featured label
wp.customize( 'ariele_lite_hide_blog_featured_label', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElementabs( '.featured-label' );
} else {
hideElement( '.featured-label' );
}
} );
} );
// Show hide featured image caption
wp.customize( 'ariele_lite_hide_featured_image_caption', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElementabs( '.media-caption-container' );
} else {
hideElement( '.media-caption-container' );
}
} );
} );
// Show hide summary post meta
wp.customize( 'ariele_lite_hide_post_meta', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.entry-meta' );
} else {
hideElement( '.entry-meta' );
}
} );
} );
// Show hide summary author
wp.customize( 'ariele_lite_hide_summary_author', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.post-author-avatar' );
showElement( '.byline' );
} else {
hideElement( '.post-author-avatar' );
hideElement( '.byline' );
}
} );
} );
// Show hide summary date
wp.customize( 'ariele_lite_hide_summary_date', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.posted-on' );
} else {
hideElement( '.posted-on' );
}
} );
} );
// Show hide summary comments
wp.customize( 'ariele_lite_hide_summary_comments', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.comments-link' );
} else {
hideElement( '.comments-link' );
}
} );
} );
// Show hide summary comments
wp.customize( 'ariele_lite_hide_post_format', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.entry-format' );
} else {
hideElement( '.entry-format' );
}
} );
} );
// Show hide excerpt more link
wp.customize( 'ariele_lite_hide_excerpt_more_link', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.excerpt-more-link-wrapper' );
} else {
hideElement( '.excerpt-more-link-wrapper' );
}
} );
} );
// Show hide blog edit link
wp.customize( 'ariele_lite_hide_edit_link', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.edit-link' );
} else {
hideElement( '.edit-link' );
}
} );
} );
// Show hide post categories
wp.customize( 'ariele_lite_hide_post_categories', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.post-categories' );
} else {
hideElement( '.post-categories' );
}
} );
} );
// Show hide post featured image
wp.customize( 'ariele_lite_hide_single_featured', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.single .featured-image' );
} else {
hideElement( '.single .featured-image' );
}
} );
} );
// Show hide single posted by author
wp.customize( 'ariele_lite_hide_single_author', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.single .post-author-avatar' );
showElement( '.single .byline' );
} else {
hideElement( '.single .post-author-avatar ' );
hideElement( '.single .byline ' );
}
} );
} );
// Show hide single post date
wp.customize( 'ariele_lite_hide_single_post_date', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.single .posted-on' );
} else {
hideElement( '.single .posted-on' );
}
} );
} );
// Show hide single post format
wp.customize( 'ariele_lite_hide_single_post_format', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.single .entry-format' );
} else {
hideElement( '.single .entry-format' );
}
} );
} );
// Show hide single comment link
wp.customize( 'ariele_lite_hide_single_comment_link', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.single .comments-link' );
} else {
hideElement( '.single .comments-link' );
}
} );
} );
// Show hide post tags
wp.customize( 'ariele_lite_hide_post_tags', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.tag-list' );
} else {
hideElement( '.tag-list' );
}
} );
} );
// Show hide post nav
wp.customize( 'ariele_lite_hide_post_nav', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '.single .post-navigation' );
} else {
hideElement( '.single .post-navigation' );
}
} );
} );
// Show hide author bio
wp.customize( 'ariele_lite_hide_author_bio', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '#author-info' );
} else {
hideElement( '#author-info' );
}
} );
} );
// Show hide post related
wp.customize( 'ariele_lite_hide_related_posts', function( value ) {
value.bind( function( newval ) {
if ( false === newval ) {
showElement( '#related-posts' );
} else {
hideElement( '#related-posts' );
}
} );
} );
/* =======================
Colours
======================= */
/* site title */
wp.customize( 'ariele_lite_colour_sitetitle', function( value ) {
value.bind( function( to ) {
var style = $('#custom-sitetitle-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* site tagline */
wp.customize( 'ariele_lite_colour_tagline', function( value ) {
value.bind( function( to ) {
var style = $('#custom-sitetagline-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* body background */
wp.customize( 'background_color', function( value ) {
value.bind( function( to ) {
var style = $('#custom-body-bg-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* page background */
wp.customize( 'ariele_lite_page_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-page-bg-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* content background */
wp.customize( 'ariele_lite_content_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-content-bg-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* content border */
wp.customize( 'ariele_lite_content_border', function( value ) {
value.bind( function( to ) {
var style = $('#custom-content-border-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* body text */
wp.customize( 'ariele_lite_body_text', function( value ) {
value.bind( function( to ) {
var style = $('#custom-body-text-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* breadcrumb text */
wp.customize( 'ariele_lite_breadcrumbs_text', function( value ) {
value.bind( function( to ) {
var style = $('#custom-breadcrumb-text-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* archive prefix */
wp.customize( 'ariele_lite_archive_prefix', function( value ) {
value.bind( function( to ) {
var style = $('#custom-archive-prefix-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* headings */
wp.customize( 'ariele_lite_headings', function( value ) {
value.bind( function( to ) {
var style = $('#custom-heading-text-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* headings hover */
wp.customize( 'ariele_lite_headings', function( value ) {
value.bind( function( to ) {
var style = $('#custom-heading-hover-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* meta info hover */
wp.customize( 'ariele_lite_meta_hover', function( value ) {
value.bind( function( to ) {
var style = $('#custom-meta-hover-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* links */
wp.customize( 'ariele_lite_links', function( value ) {
value.bind( function( to ) {
var style = $('#custom-link-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* post categories bg */
wp.customize( 'ariele_lite_post_categories_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-post-cat-bg-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* post categories text */
wp.customize( 'ariele_lite_post_categories_label', function( value ) {
value.bind( function( to ) {
var style = $('#custom-post-cat-text-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* post categories hover bg */
wp.customize( 'ariele_lite_post_categories_hover_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-post-cat-hover-bg-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* post categories hover text */
wp.customize( 'ariele_lite_post_categories_hover_label', function( value ) {
value.bind( function( to ) {
var style = $('#custom-post-cat-hover-text-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* post tags bg */
wp.customize( 'ariele_lite_post_tags_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-post-tags-bg-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* post tags text */
wp.customize( 'ariele_lite_post_tags_label', function( value ) {
value.bind( function( to ) {
var style = $('#custom-post-tags-text-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* post tags hover bg */
wp.customize( 'ariele_lite_post_tags_hover_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-post-tags-hover-bg-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* post tags hover text */
wp.customize( 'ariele_lite_post_tags_hover_label', function( value ) {
value.bind( function( to ) {
var style = $('#custom-post-tags-hover-text-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* featured label bg */
wp.customize( 'ariele_lite_featured_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-featured-bg-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* featured label text */
wp.customize( 'ariele_lite_featured_text', function( value ) {
value.bind( function( to ) {
var style = $('#custom-featured-text-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* tag cloud border */
wp.customize( 'ariele_lite_tagcloud_border', function( value ) {
value.bind( function( to ) {
var style = $('#custom-tagcloud-border-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* tag cloud hover bg */
wp.customize( 'ariele_lite_tagcloud_hover_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-tagcloud-hover-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* tag cloud hover text */
wp.customize( 'ariele_lite_tagcloud_hover_text', function( value ) {
value.bind( function( to ) {
var style = $('#custom-tagcloud-hover-text-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* widget title line */
wp.customize( 'ariele_lite_widget_title_line', function( value ) {
value.bind( function( to ) {
var style = $('#custom-widget-title-line-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* widget footer title line */
wp.customize( 'ariele_lite_widget_footer_title_line', function( value ) {
value.bind( function( to ) {
var style = $('#custom-widget-footer-title-line-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* footer sidebars bg */
wp.customize( 'ariele_lite_footer_sidebar_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-footer-sidebar-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* footer sidebars text */
wp.customize( 'ariele_lite_footer_sidebar_text', function( value ) {
value.bind( function( to ) {
var style = $('#custom-footer-sidebar-text-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* footer bg */
wp.customize( 'ariele_lite_footer_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-footer-sidebar-text-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* footer text */
wp.customize( 'ariele_lite_footer_text', function( value ) {
value.bind( function( to ) {
var style = $('#custom-site-footer-text-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/*widget list lines */
wp.customize( 'ariele_lite_widget_list_line', function( value ) {
value.bind( function( to ) {
var style = $('#custom-widget-list-lines-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* page intros */
wp.customize( 'ariele_lite_page_intros', function( value ) {
value.bind( function( to ) {
var style = $('#custom-page-intros-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* more link bg */
wp.customize( 'ariele_lite_more_link_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-more-link-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* more link text */
wp.customize( 'ariele_lite_more_link_text_colour', function( value ) {
value.bind( function( to ) {
var style = $('#custom-more-link-text-colour-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* more link hover bg */
wp.customize( 'ariele_lite_more_link_hover_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-more-link-hover-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* more link hover text */
wp.customize( 'ariele_lite_more_link_hover_text', function( value ) {
value.bind( function( to ) {
var style = $('#custom-more-link-hover-text-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* top social */
wp.customize( 'ariele_lite_topbar_social_icon', function( value ) {
value.bind( function( to ) {
var style = $('#custom-top-social-icon-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* featured image caption bg */
wp.customize( 'ariele_lite_featured_caption_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-featured-caption-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* featured image caption text */
wp.customize( 'ariele_lite_featured_caption_text', function( value ) {
value.bind( function( to ) {
var style = $('#custom-featured-caption-text-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* image caption bg */
wp.customize( 'ariele_lite_caption_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-caption-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* image caption text */
wp.customize( 'ariele_lite_caption_text', function( value ) {
value.bind( function( to ) {
var style = $('#custom-caption-text-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* mobile toggle button bg */
wp.customize( 'ariele_lite_mobile_toggle_button', function( value ) {
value.bind( function( to ) {
var style = $('#custom-toggle-button-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* mobile toggle button text */
wp.customize( 'ariele_lite_mobile_toggle_label', function( value ) {
value.bind( function( to ) {
var style = $('#custom-toggle-button-text-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* mobile toggle button hover bg */
wp.customize( 'ariele_lite_mobile_toggle_hover_button', function( value ) {
value.bind( function( to ) {
var style = $('#custom-toggle-button-hover-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* mobile toggle button hover text */
wp.customize( 'ariele_lite_mobile_toggle_hover_label', function( value ) {
value.bind( function( to ) {
var style = $('#custom-toggle-button-hover-text-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* mobile menu item lines */
wp.customize( 'ariele_lite_mobile_menu_lines', function( value ) {
value.bind( function( to ) {
var style = $('#custom-mobile-menu-lines-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* mobile menu dropdown hover arrows */
wp.customize( 'ariele_lite_submenu_dropdown_arrow_hover', function( value ) {
value.bind( function( to ) {
var style = $('#custom-mobile-menu-dropdown-arrow-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* menu links */
wp.customize( 'ariele_lite_menu_links', function( value ) {
value.bind( function( to ) {
var style = $('#custom-menu-links-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* menu hover links */
wp.customize( 'ariele_lite_menu_hover_links', function( value ) {
value.bind( function( to ) {
var style = $('#custom-menu-hover-links-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* menu hover links */
wp.customize( 'ariele_lite_submenu_dropdown_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-menu-dropdown-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* menu submenu hover links */
wp.customize( 'ariele_lite_submenu_link_hover', function( value ) {
value.bind( function( to ) {
var style = $('#custom-submenu-hover-links-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* full post nav bg */
wp.customize( 'ariele_lite_single_nav_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-single-nav-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* full post nav bg */
wp.customize( 'ariele_lite_single_nav_text', function( value ) {
value.bind( function( to ) {
var style = $('#custom-single-nav-text-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* button bg */
wp.customize( 'ariele_lite_button', function( value ) {
value.bind( function( to ) {
var style = $('#custom-button-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* button text */
wp.customize( 'ariele_lite_button_label', function( value ) {
value.bind( function( to ) {
var style = $('#custom-button-text-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* button hover bg */
wp.customize( 'ariele_lite_button_hover', function( value ) {
value.bind( function( to ) {
var style = $('#custom-button-hover-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* button hover text */
wp.customize( 'ariele_lite_button_label_hover', function( value ) {
value.bind( function( to ) {
var style = $('#custom-button-hover-text-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* scroll to top bg */
wp.customize( 'ariele_lite_scroll_button_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-scroll-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* scroll to top icon */
wp.customize( 'ariele_lite_scroll_button_icon', function( value ) {
value.bind( function( to ) {
var style = $('#custom-scroll-icon-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* scroll to top bg hover */
wp.customize( 'ariele_lite_scroll_button_hover_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-scroll-hover-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* scroll to top hover icon */
wp.customize( 'ariele_lite_scroll_button_hover_icon', function( value ) {
value.bind( function( to ) {
var style = $('#custom-scroll-hover-icon-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* blog nav bg */
wp.customize( 'ariele_lite_blog_nav_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-blog-nav-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* blog nav numbers */
wp.customize( 'ariele_lite_blog_nav_numbers', function( value ) {
value.bind( function( to ) {
var style = $('#custom-blog-nav-numbers-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* blog nav hover bg */
wp.customize( 'ariele_lite_blog_nav_hover_bg', function( value ) {
value.bind( function( to ) {
var style = $('#custom-blog-nav-hover-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* blog nav hover numbers */
wp.customize( 'ariele_lite_blog_nav_hover_numbers', function( value ) {
value.bind( function( to ) {
var style = $('#custom-blog-nav-hover-numbers-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* selection bg */
wp.customize( 'ariele_lite_selection', function( value ) {
value.bind( function( to ) {
var style = $('#custom-selection-bg-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* selection text */
wp.customize( 'ariele_lite_selection_text', function( value ) {
value.bind( function( to ) {
var style = $('#custom-selection-text-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
/* error code */
wp.customize( 'ariele_lite_error', function( value ) {
value.bind( function( to ) {
var style = $('#custom-error-code-css');
style.remove();
style = $( '' ).appendTo( $head );
} );
} );
} )( jQuery );