/*! * Beetan Theme * * Author: StorePress ( StorePressHQ@gmail.com ) * Date: 9/15/2022, 7:54:37 PM * Released under the GPLv3 license. */ /******/ (function() { // webpackBootstrap var __webpack_exports__ = {}; /* global wp, jQuery */ /** * File customizer.js. * * 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); }); }); // Site Description wp.customize('blogdescription', function (value) { value.bind(function (to) { $('.site-description').text(to); }); }); // Set Base font size wp.customize('site_background_color', function (value) { value.bind(function (to) { document.documentElement.style.setProperty('--beetan-site-background-color', to); }); }); // Set site container width wp.customize('site_container_width', function (value) { value.bind(function (to) { document.documentElement.style.setProperty('--beetan-site-container-width', to + 'px'); }); }); // Set sidebar width wp.customize('sidebar_width', function (value) { value.bind(function (to) { document.documentElement.style.setProperty('--beetan-sidebar-width', to + '%'); }); }); // Set site header background color wp.customize('site_header_background_color', function (value) { value.bind(function (to) { document.documentElement.style.setProperty('--beetan-site-header-background-color', to); }); }); // Set site header box shadow color wp.customize('site_header_box_shadow', function (value) { value.bind(function (to) { document.documentElement.style.setProperty('--beetan-site-header-box-shadow-color', to); }); }); // Set Base font size wp.customize('body_font_size', function (value) { value.bind(function (to) { document.documentElement.style.setProperty('--body-font-size', to); }); }); // Theme color wp.customize('primary_color', function (value) { value.bind(function (to) { document.documentElement.style.setProperty('--beetan-primary-color', to); }); }); // Body font color wp.customize('text_color', function (value) { value.bind(function (to) { document.documentElement.style.setProperty('--beetan-text-color', to); }); }); // Heading font color wp.customize('heading_color', function (value) { value.bind(function (to) { document.documentElement.style.setProperty('--beetan-heading-color', to); }); }); // Sub Heading font color wp.customize('sub_heading_color', function (value) { value.bind(function (to) { document.documentElement.style.setProperty('--beetan-sub-heading-color', to); }); }); // Link color wp.customize('link_color', function (value) { value.bind(function (to) { document.documentElement.style.setProperty('--beetan-link-color', to); }); }); // Link hover color wp.customize('link_hover_color', function (value) { value.bind(function (to) { document.documentElement.style.setProperty('--beetan-link-hover-color', to); }); }); // Set space between blog posts wp.customize('blog_posts_gap', function (value) { value.bind(function (to) { document.documentElement.style.setProperty('--beetan-blog-posts-gap', to + 'px'); }); }); })(jQuery); /******/ })() ;