a{'; $the_wp_business_custom_css .='color: '.esc_html($the_wp_business_theme_color).';'; $the_wp_business_custom_css .='} }'; } if($the_wp_business_theme_color != false){ $the_wp_business_custom_css .='a.button, #header, .woocommerce select.orderby, #footer h3, .woocommerce-message {'; $the_wp_business_custom_css .='border-color: '.esc_html($the_wp_business_theme_color).';'; $the_wp_business_custom_css .='}'; } if($the_wp_business_theme_color != false){ $the_wp_business_custom_css .='.hvr-sweep-to-right {'; $the_wp_business_custom_css .='box-shadow: 0 0 5px '.esc_html($the_wp_business_theme_color).';'; $the_wp_business_custom_css .='}'; } // Layout Options $the_wp_business_theme_layout = get_theme_mod( 'the_wp_business_theme_layout_options','Default Theme'); if($the_wp_business_theme_layout == 'Default Theme'){ $the_wp_business_custom_css .='body{'; $the_wp_business_custom_css .='max-width: 100%;'; $the_wp_business_custom_css .='}'; }else if($the_wp_business_theme_layout == 'Container Theme'){ $the_wp_business_custom_css .='body{'; $the_wp_business_custom_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;'; $the_wp_business_custom_css .='}'; $the_wp_business_custom_css .='.page-template-custom-front-page #header{'; $the_wp_business_custom_css .='width: 97.7%'; $the_wp_business_custom_css .='}'; $the_wp_business_custom_css .=' @media screen and (min-width:1000px) and (max-width:1024px){ .page-template-custom-front-page #header{'; $the_wp_business_custom_css .='width:97%;'; $the_wp_business_custom_css .='} }'; $the_wp_business_custom_css .=' @media screen and (min-width:720px) and (max-width:1000px){ .page-template-custom-front-page #header{'; $the_wp_business_custom_css .='width:96.1%;'; $the_wp_business_custom_css .='} }'; $the_wp_business_custom_css .=' @media screen and (max-width:720px){ .page-template-custom-front-page #header{'; $the_wp_business_custom_css .='width:100%;'; $the_wp_business_custom_css .='} }'; }else if($the_wp_business_theme_layout == 'Box Container Theme'){ $the_wp_business_custom_css .='body{'; $the_wp_business_custom_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;'; $the_wp_business_custom_css .='}'; $the_wp_business_custom_css .='.page-template-custom-front-page #header{'; $the_wp_business_custom_css .='width: 86.4%;'; $the_wp_business_custom_css .='}'; $the_wp_business_custom_css .=' @media screen and (min-width:1000px) and (max-width:1024px){ .page-template-custom-front-page #header{'; $the_wp_business_custom_css .='width:97% ;'; $the_wp_business_custom_css .='} }'; $the_wp_business_custom_css .=' @media screen and (min-width:720px) and (max-width:1000px){ .page-template-custom-front-page #header{'; $the_wp_business_custom_css .='width:96.1%;'; $the_wp_business_custom_css .='} }'; $the_wp_business_custom_css .=' @media screen and (max-width:720px){ .page-template-custom-front-page #header{'; $the_wp_business_custom_css .='width:100%;'; $the_wp_business_custom_css .='} }'; } /*--------------------------- Slider Opacity -------------------*/ $the_wp_business_slider_layout = get_theme_mod( 'the_wp_business_slider_opacity_color','0.7'); if($the_wp_business_slider_layout == '0'){ $the_wp_business_custom_css .='#slider img{'; $the_wp_business_custom_css .='opacity:0'; $the_wp_business_custom_css .='}'; }else if($the_wp_business_slider_layout == '0.1'){ $the_wp_business_custom_css .='#slider img{'; $the_wp_business_custom_css .='opacity:0.1'; $the_wp_business_custom_css .='}'; }else if($the_wp_business_slider_layout == '0.2'){ $the_wp_business_custom_css .='#slider img{'; $the_wp_business_custom_css .='opacity:0.2'; $the_wp_business_custom_css .='}'; }else if($the_wp_business_slider_layout == '0.3'){ $the_wp_business_custom_css .='#slider img{'; $the_wp_business_custom_css .='opacity:0.3'; $the_wp_business_custom_css .='}'; }else if($the_wp_business_slider_layout == '0.4'){ $the_wp_business_custom_css .='#slider img{'; $the_wp_business_custom_css .='opacity:0.4'; $the_wp_business_custom_css .='}'; }else if($the_wp_business_slider_layout == '0.5'){ $the_wp_business_custom_css .='#slider img{'; $the_wp_business_custom_css .='opacity:0.5'; $the_wp_business_custom_css .='}'; }else if($the_wp_business_slider_layout == '0.6'){ $the_wp_business_custom_css .='#slider img{'; $the_wp_business_custom_css .='opacity:0.6'; $the_wp_business_custom_css .='}'; }else if($the_wp_business_slider_layout == '0.7'){ $the_wp_business_custom_css .='#slider img{'; $the_wp_business_custom_css .='opacity:0.7'; $the_wp_business_custom_css .='}'; }else if($the_wp_business_slider_layout == '0.8'){ $the_wp_business_custom_css .='#slider img{'; $the_wp_business_custom_css .='opacity:0.8'; $the_wp_business_custom_css .='}'; }else if($the_wp_business_slider_layout == '0.9'){ $the_wp_business_custom_css .='#slider img{'; $the_wp_business_custom_css .='opacity:0.9'; $the_wp_business_custom_css .='}'; } /*---------------Slider Content Layout -------------------*/ $the_wp_business_slider_layout = get_theme_mod( 'the_wp_business_slider_alignment_option','Center Align'); if($the_wp_business_slider_layout == 'Left Align'){ $the_wp_business_custom_css .='#slider .carousel-caption, #slider .inner_carousel{'; $the_wp_business_custom_css .='text-align:left;'; $the_wp_business_custom_css .='}'; $the_wp_business_custom_css .='#slider .inner_carousel p{'; $the_wp_business_custom_css .='padding-left:0;'; $the_wp_business_custom_css .='}'; $the_wp_business_custom_css .='#slider .carousel-caption{'; $the_wp_business_custom_css .='left:15%; right:25%;'; $the_wp_business_custom_css .='}'; }else if($the_wp_business_slider_layout == 'Center Align'){ $the_wp_business_custom_css .='#slider .carousel-caption, #slider .inner_carousel{'; $the_wp_business_custom_css .='text-align:center;'; $the_wp_business_custom_css .='}'; }else if($the_wp_business_slider_layout == 'Right Align'){ $the_wp_business_custom_css .='#slider .carousel-caption, #slider .inner_carousel{'; $the_wp_business_custom_css .='text-align:right;'; $the_wp_business_custom_css .='}'; $the_wp_business_custom_css .='#slider .inner_carousel p{'; $the_wp_business_custom_css .='padding-right:0;'; $the_wp_business_custom_css .='}'; $the_wp_business_custom_css .='#slider .carousel-caption{'; $the_wp_business_custom_css .='left:25%; right:15%;'; $the_wp_business_custom_css .='}'; } /*--------- Preloader Color Option -------*/ $the_wp_business_preloader_color = get_theme_mod('the_wp_business_preloader_color'); if($the_wp_business_preloader_color != false){ $the_wp_business_custom_css .=' .tg-loader{'; $the_wp_business_custom_css .='border-color: '.esc_html($the_wp_business_preloader_color).';'; $the_wp_business_custom_css .='} '; $the_wp_business_custom_css .=' .tg-loader-inner, .preloader .preloader-container .animated-preloader, .preloader .preloader-container .animated-preloader:before{'; $the_wp_business_custom_css .='background-color: '.esc_html($the_wp_business_preloader_color).';'; $the_wp_business_custom_css .='} '; } $the_wp_business_preloader_bg_color = get_theme_mod('the_wp_business_preloader_bg_color'); if($the_wp_business_preloader_bg_color != false){ $the_wp_business_custom_css .=' #overlayer, .preloader{'; $the_wp_business_custom_css .='background-color: '.esc_html($the_wp_business_preloader_bg_color).';'; $the_wp_business_custom_css .='} '; } /*------- Topbar settings -----*/ $the_wp_business_top_header = get_theme_mod('the_wp_business_top_header',true); if($the_wp_business_top_header == false){ $the_wp_business_custom_css .=' .menu-sec{'; $the_wp_business_custom_css .='margin: 0;'; $the_wp_business_custom_css .='} '; } /*------------ Button Settings option-----------------*/ $the_wp_business_top_button_padding = get_theme_mod('the_wp_business_top_button_padding'); $the_wp_business_bottom_button_padding = get_theme_mod('the_wp_business_bottom_button_padding'); $the_wp_business_left_button_padding = get_theme_mod('the_wp_business_left_button_padding'); $the_wp_business_right_button_padding = get_theme_mod('the_wp_business_right_button_padding'); if($the_wp_business_top_button_padding != false || $the_wp_business_bottom_button_padding != false || $the_wp_business_left_button_padding != false || $the_wp_business_right_button_padding != false){ $the_wp_business_custom_css .='.read-more a, a.blogbutton-small, #comments input[type="submit"].submit, .read-btn a{'; $the_wp_business_custom_css .='padding-top: '.esc_html($the_wp_business_top_button_padding).'px; padding-bottom: '.esc_html($the_wp_business_bottom_button_padding).'px; padding-left: '.esc_html($the_wp_business_left_button_padding).'px; padding-right: '.esc_html($the_wp_business_right_button_padding).'px; display:inline-block;'; $the_wp_business_custom_css .='}'; } $the_wp_business_button_border_radius = get_theme_mod('the_wp_business_button_border_radius',4); $the_wp_business_custom_css .='.read-more a, a.blogbutton-small, #comments input[type="submit"].submit, .hvr-sweep-to-right:before, .read-btn a{'; $the_wp_business_custom_css .='border-radius: '.esc_html($the_wp_business_button_border_radius).'px;'; $the_wp_business_custom_css .='}'; /*----------- Copyright css -----*/ $the_wp_business_copyright_top_padding = get_theme_mod('the_wp_business_top_copyright_padding'); $the_wp_business_copyright_bottom_padding = get_theme_mod('the_wp_business_bottom_copyright_padding'); if($the_wp_business_copyright_top_padding != false || $the_wp_business_copyright_bottom_padding != false){ $the_wp_business_custom_css .='.inner{'; $the_wp_business_custom_css .='padding-top: '.esc_html($the_wp_business_copyright_top_padding).'px; padding-bottom: '.esc_html($the_wp_business_copyright_bottom_padding).'px; '; $the_wp_business_custom_css .='}'; } $the_wp_business_copyright_alignment = get_theme_mod('the_wp_business_copyright_alignment', 'center'); if($the_wp_business_copyright_alignment == 'center' ){ $the_wp_business_custom_css .='#footer .copyright p{'; $the_wp_business_custom_css .='text-align: '. $the_wp_business_copyright_alignment .';'; $the_wp_business_custom_css .='}'; }elseif($the_wp_business_copyright_alignment == 'left' ){ $the_wp_business_custom_css .='#footer .copyright p{'; $the_wp_business_custom_css .=' text-align: '. $the_wp_business_copyright_alignment .';'; $the_wp_business_custom_css .='}'; }elseif($the_wp_business_copyright_alignment == 'right' ){ $the_wp_business_custom_css .='#footer .copyright p{'; $the_wp_business_custom_css .='text-align: '. $the_wp_business_copyright_alignment .';'; $the_wp_business_custom_css .='}'; } $the_wp_business_copyright_font_size = get_theme_mod('the_wp_business_copyright_font_size'); $the_wp_business_custom_css .='#footer .copyright p{'; $the_wp_business_custom_css .='font-size: '.esc_html($the_wp_business_copyright_font_size).'px;'; $the_wp_business_custom_css .='}'; /*------ Topbar padding ------*/ $the_wp_business_top_topbar_padding = get_theme_mod('the_wp_business_top_topbar_padding'); $the_wp_business_bottom_topbar_padding = get_theme_mod('the_wp_business_bottom_topbar_padding'); if($the_wp_business_top_topbar_padding != false || $the_wp_business_bottom_topbar_padding != false){ $the_wp_business_custom_css .='#header .header-top{'; $the_wp_business_custom_css .='padding-top: '.esc_html($the_wp_business_top_topbar_padding).'px; padding-bottom: '.esc_html($the_wp_business_bottom_topbar_padding).'px; '; $the_wp_business_custom_css .='}'; } /*------ Woocommerce ----*/ $the_wp_business_product_border = get_theme_mod('the_wp_business_product_border',false); if($the_wp_business_product_border == true){ $the_wp_business_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{'; $the_wp_business_custom_css .='border: 1px solid #dcdcdc;'; $the_wp_business_custom_css .='}'; } $the_wp_business_product_top = get_theme_mod('the_wp_business_product_top_padding', 5); $the_wp_business_product_bottom = get_theme_mod('the_wp_business_product_bottom_padding', 5); $the_wp_business_product_left = get_theme_mod('the_wp_business_product_left_padding', 5); $the_wp_business_product_right = get_theme_mod('the_wp_business_product_right_padding', 5); $the_wp_business_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{'; $the_wp_business_custom_css .='padding-top: '.esc_html($the_wp_business_product_top).'px; padding-bottom: '.esc_html($the_wp_business_product_bottom).'px; padding-left: '.esc_html($the_wp_business_product_left).'px; padding-right: '.esc_html($the_wp_business_product_right).'px;'; $the_wp_business_custom_css .='}'; $the_wp_business_product_border_radius = get_theme_mod('the_wp_business_product_border_radius'); $the_wp_business_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{'; $the_wp_business_custom_css .='border-radius: '.esc_html($the_wp_business_product_border_radius).'px;'; $the_wp_business_custom_css .='}'; /*----- WooCommerce button css --------*/ $the_wp_business_product_button_top = get_theme_mod('the_wp_business_product_button_top_padding',10); $the_wp_business_product_button_bottom = get_theme_mod('the_wp_business_product_button_bottom_padding',10); $the_wp_business_product_button_left = get_theme_mod('the_wp_business_product_button_left_padding',15); $the_wp_business_product_button_right = get_theme_mod('the_wp_business_product_button_right_padding',15); $the_wp_business_custom_css .='.woocommerce ul.products li.product .button, .woocommerce div.product form.cart .button, a.button.wc-forward, .woocommerce .cart .button, .woocommerce .cart input.button, .woocommerce #payment #place_order, .woocommerce-page #payment #place_order, button.woocommerce-button.button.woocommerce-form-login__submit, .woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled]{'; $the_wp_business_custom_css .='padding-top: '.esc_html($the_wp_business_product_button_top).'px; padding-bottom: '.esc_html($the_wp_business_product_button_bottom).'px; padding-left: '.esc_html($the_wp_business_product_button_left).'px; padding-right: '.esc_html($the_wp_business_product_button_right).'px;'; $the_wp_business_custom_css .='}'; $the_wp_business_product_button_border_radius = get_theme_mod('the_wp_business_product_button_border_radius'); $the_wp_business_custom_css .='.woocommerce ul.products li.product .button, .woocommerce div.product form.cart .button, a.button.wc-forward, .woocommerce .cart .button, .woocommerce .cart input.button, a.checkout-button.button.alt.wc-forward, .woocommerce #payment #place_order, .woocommerce-page #payment #place_order, button.woocommerce-button.button.woocommerce-form-login__submit{'; $the_wp_business_custom_css .='border-radius: '.esc_html($the_wp_business_product_button_border_radius).'px;'; $the_wp_business_custom_css .='}'; /*----- WooCommerce product sale css --------*/ $the_wp_business_product_sale_top = get_theme_mod('the_wp_business_product_sale_top_padding'); $the_wp_business_product_sale_bottom = get_theme_mod('the_wp_business_product_sale_bottom_padding'); $the_wp_business_product_sale_left = get_theme_mod('the_wp_business_product_sale_left_padding'); $the_wp_business_product_sale_right = get_theme_mod('the_wp_business_product_sale_right_padding'); $the_wp_business_custom_css .='.woocommerce span.onsale {'; $the_wp_business_custom_css .='padding-top: '.esc_html($the_wp_business_product_sale_top).'px; padding-bottom: '.esc_html($the_wp_business_product_sale_bottom).'px; padding-left: '.esc_html($the_wp_business_product_sale_left).'px; padding-right: '.esc_html($the_wp_business_product_sale_right).'px;'; $the_wp_business_custom_css .='}'; $the_wp_business_product_sale_border_radius = get_theme_mod('the_wp_business_product_sale_border_radius',50); $the_wp_business_custom_css .='.woocommerce span.onsale {'; $the_wp_business_custom_css .='border-radius: '.esc_html($the_wp_business_product_sale_border_radius).'px;'; $the_wp_business_custom_css .='}'; $the_wp_business_menu_case = get_theme_mod('the_wp_business_product_sale_position', 'Right'); if($the_wp_business_menu_case == 'Right' ){ $the_wp_business_custom_css .='.woocommerce ul.products li.product .onsale{'; $the_wp_business_custom_css .=' left:auto; right:0;'; $the_wp_business_custom_css .='}'; }elseif($the_wp_business_menu_case == 'Left' ){ $the_wp_business_custom_css .='.woocommerce ul.products li.product .onsale{'; $the_wp_business_custom_css .=' left:-10px; right:auto;'; $the_wp_business_custom_css .='}'; } /*---- Slider Image overlay -----*/ $the_wp_business_slider_image_overlay = get_theme_mod('the_wp_business_slider_image_overlay',true); if($the_wp_business_slider_image_overlay == false){ $the_wp_business_custom_css .='#slider img {'; $the_wp_business_custom_css .='opacity: 1;'; $the_wp_business_custom_css .='}'; } $the_wp_business_slider_overlay_color = get_theme_mod('the_wp_business_slider_overlay_color'); if($the_wp_business_slider_overlay_color != false){ $the_wp_business_custom_css .='#slider {'; $the_wp_business_custom_css .='background-color: '.esc_html($the_wp_business_slider_overlay_color).';'; $the_wp_business_custom_css .='}'; } /*---- Comment form ----*/ $the_wp_business_comment_width = get_theme_mod('the_wp_business_comment_width', '100'); $the_wp_business_custom_css .='#comments textarea{'; $the_wp_business_custom_css .=' width:'.esc_html($the_wp_business_comment_width).'%;'; $the_wp_business_custom_css .='}'; $the_wp_business_comment_submit_text = get_theme_mod('the_wp_business_comment_submit_text', 'Post Comment'); if($the_wp_business_comment_submit_text == ''){ $the_wp_business_custom_css .='#comments p.form-submit {'; $the_wp_business_custom_css .='display: none;'; $the_wp_business_custom_css .='}'; } $the_wp_business_comment_title = get_theme_mod('the_wp_business_comment_title', 'Leave a Reply'); if($the_wp_business_comment_title == ''){ $the_wp_business_custom_css .='#comments h2#reply-title {'; $the_wp_business_custom_css .='display: none;'; $the_wp_business_custom_css .='}'; } /*------ Footer background css -------*/ $the_wp_business_footer_bg_color = get_theme_mod('the_wp_business_footer_bg_color'); if($the_wp_business_footer_bg_color != false){ $the_wp_business_custom_css .='#footer{'; $the_wp_business_custom_css .='background-color: '.esc_html($the_wp_business_footer_bg_color).';'; $the_wp_business_custom_css .='}'; } $the_wp_business_footer_bg_image = get_theme_mod('the_wp_business_footer_bg_image'); if($the_wp_business_footer_bg_image != false){ $the_wp_business_custom_css .='#footer{'; $the_wp_business_custom_css .='background: url('.esc_html($the_wp_business_footer_bg_image).');'; $the_wp_business_custom_css .='}'; } /*----- Featured image css -----*/ $the_wp_business_feature_image_border_radius = get_theme_mod('the_wp_business_feature_image_border_radius'); if($the_wp_business_feature_image_border_radius != false){ $the_wp_business_custom_css .='.hovereffect img{'; $the_wp_business_custom_css .='border-radius: '.esc_html($the_wp_business_feature_image_border_radius).'px;'; $the_wp_business_custom_css .='}'; } $the_wp_business_feature_image_shadow = get_theme_mod('the_wp_business_feature_image_shadow'); if($the_wp_business_feature_image_shadow != false){ $the_wp_business_custom_css .='.hovereffect img{'; $the_wp_business_custom_css .='box-shadow: '.esc_html($the_wp_business_feature_image_shadow).'px '.esc_html($the_wp_business_feature_image_shadow).'px '.esc_html($the_wp_business_feature_image_shadow).'px #aaa;'; $the_wp_business_custom_css .='}'; } /*------ Sticky header padding ------------*/ $the_wp_business_top_sticky_header_padding = get_theme_mod('the_wp_business_top_sticky_header_padding'); $the_wp_business_bottom_sticky_header_padding = get_theme_mod('the_wp_business_bottom_sticky_header_padding'); $the_wp_business_custom_css .=' .fixed-header{'; $the_wp_business_custom_css .=' padding-top: '.esc_html($the_wp_business_top_sticky_header_padding).'px; padding-bottom: '.esc_html($the_wp_business_bottom_sticky_header_padding).'px'; $the_wp_business_custom_css .='}';