ul > li > a.active, #site-navigation > ul > li > a:hover, button:hover, input[type=\"button\"]:hover,.woocommerce .cart_totals .button:hover, input[type=\"reset\"]:hover, input[type=\"submit\"]:hover, .text-color, .social-menu-widget a, .social-menu-widget a:hover, .archive .team-social li a, a, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, .single .meta-post a, .header-contact .fa,.social-navigation li a:hover,.timeline-section.style2 .timeline-date,.default-testimonials .client-info .client .client-name,.style1 .client-info .client .client-name { color:" . esc_attr ( $primary_color ) . "}"."\n"; $custom .= ".type-team.type-b.style2 .avatar::after,.project-filter li a.active,.project-filter li a:hover,.woocommerce #respond input#submit,.woocommerce button.button,.woocommerce input.button,.woocommerce .cart_totals .button,.project-filter li.active,.project-filter li:hover,.preloader .pre-bounce1, .preloader .pre-bounce2,.type-team .team-thumb .team-pop,.roll-progress .progress-animate,.roll-socials li a:hover,.roll-project .project-item .project-pop,.roll-project .project-filter li.active,.roll-project .project-filter li:hover,.banner-button.light:hover,.banner-button.border:hover,.banner-button,.roll-icon-box.white .icon,.owl-theme .owl-controls .owl-page.active span,.owl-theme .owl-controls.clickable .owl-page:hover span, .bottom .socials li:hover a,.sidebar .widget:before,.blog-pagination ul li.active,.blog-pagination ul li:hover a,.content-area .hentry:after,.text-slider .maintitle:after,.error-wrap #search-submit:hover,#site-navigation .sub-menu li:hover > a,#site-navigation ul li ul:after, button, input[type=\"button\"], input[type=\"reset\"], input[type=\"submit\"],.panel-grid-cell .widget-title:after,.social-section.style2 .social-menu-widget li a:hover,.cart-amount,.footer-contact .widget-title:after,.fp-contact .fa,.reply,.pricing-section .plan-item.featured-plan .plan-header,.go-top, .woocommerce .woocommerce-mini-cart-item .remove_from_cart_button, .woocommerce-mini-cart__buttons .button, .nav-cart .cart-count { background-color:" . esc_attr ( $primary_color ) . "}"."\n"; $custom .= ".owl-theme .owl-controls .owl-page:hover span,.owl-theme .owl-controls .owl-page.active span,.type-team.type-b .team-social li a,.roll-socials li a:hover,.roll-socials li a,.banner-button.light:hover,.banner-button.border,.banner-button,.roll-icon-list .icon,.roll-icon-box .icon,.comment .comment-detail,.widget-tags .tag-list a:hover,.blog-pagination ul li,.hentry blockquote,.error-wrap #search-submit:hover,textarea:focus,input[type=\"text\"]:focus,input[type=\"password\"]:focus,input[type=\"datetime\"]:focus,input[type=\"datetime-local\"]:focus,input[type=\"date\"]:focus,input[type=\"month\"]:focus,input[type=\"time\"]:focus,input[type=\"week\"]:focus,input[type=\"number\"]:focus,input[type=\"email\"]:focus,input[type=\"url\"]:focus,input[type=\"search\"]:focus,input[type=\"tel\"]:focus,input[type=\"color\"]:focus, button, input[type=\"button\"], input[type=\"reset\"], input[type=\"submit\"], .archive .team-social li a,.latest-news-wrapper.carousel.style2 .meta-post a:hover { border-color:" . esc_attr ( $primary_color ) . "}"."\n"; } //Body text color $body_text = get_theme_mod( 'body_text_color', '#47425d' ); $custom .= "body { color:" . esc_attr ( $body_text ) . "}"."\n"; //Menu background $menu_bg_color = get_theme_mod( 'menu_bg_color', '#000000' ); $rgba = bizworx_hex2rgba($menu_bg_color, 0.9); $custom .= ".site-header.float-header { background-color:" . esc_attr ( $rgba ) . ";}" . "\n"; $custom .= "@media only screen and (max-width: 1024px) { .site-header { background-color:" . esc_attr ( $menu_bg_color ) . ";}}" . "\n"; //Site title $site_title = get_theme_mod( 'site_title_color', '#ffffff' ); $custom .= ".site-title a, .site-title a:hover { color:" . esc_attr ( $site_title ) . "}"."\n"; //Site desc $site_desc = get_theme_mod( 'site_desc_color', '#ffffff' ); $custom .= ".site-description { color:" . esc_attr ( $site_desc ) . "}"."\n"; //Top level menu items color $top_items_color = get_theme_mod( 'top_items_color', '#ffffff' ); $custom .= "#site-navigation ul li a, #site-navigation ul li::before { color:" . esc_attr ( $top_items_color ) . "}"."\n"; //Sub menu items color $submenu_items_color = get_theme_mod( 'submenu_items_color', '#ffffff' ); $custom .= "#site-navigation ul ul li a { color:" . esc_attr ( $submenu_items_color ) . "}"."\n"; //Sub menu background $submenu_background = get_theme_mod( 'submenu_background', '#1c1c1c' ); $custom .= "#site-navigation ul ul li a { background:" . esc_attr ( $submenu_background ) . "}"."\n"; //Footer widget area background $footer_widgets_background = get_theme_mod( 'footer_widgets_background', '#252525' ); $custom .= ".footer-widgets { background-color:" . esc_attr ( $footer_widgets_background ) . "}"."\n"; //Footer widget area color $footer_widgets_color = get_theme_mod( 'footer_widgets_color', '#767676' ); if ( $footer_widgets_color != '#767676' ) { $custom .= "#sidebar-footer,#sidebar-footer a,.footer-widgets .widget-title { color:" . esc_attr ($footer_widgets_color ) . "}"."\n"; } //Footer background $footer_background = get_theme_mod( 'footer_background', '#1c1c1c' ); $custom .= ".site-footer { background-color:" . esc_attr ( $footer_background ) . "}"."\n"; //Footer color $footer_color = get_theme_mod( 'footer_color', '#666666' ); $custom .= ".site-footer,.site-footer a { color:" . esc_attr ( $footer_color ) . "}"."\n"; //Header banner text $banner_text = get_theme_mod( 'banner_text_color', '#ffffff' ); $custom .= ".header-content .maintitle, .slider-content .maintitle, .header-content .subtitle, .slider-content .subtitle { color:" . esc_attr ( $banner_text ) . "}"."\n"; //Header background $header_bg_image = get_theme_mod('background_image_1', get_stylesheet_directory_uri() . '/images/1.jpg'); $header_bg_size = get_theme_mod('header_bg_size', 'cover'); $header_bg_height = get_theme_mod('header_height', '600'); $custom .= ".header-background { background: url(" . esc_attr ( $header_bg_image ) . "); background-size: " . esc_attr ( $header_bg_size ) . "; height: " . esc_attr ( $header_bg_height ) . "px; }"."\n"; //Page wrapper padding $pg_top_padding = get_theme_mod( 'wrapper_top_padding', '83' ); $pg_bottom_padding = get_theme_mod( 'wrapper_bottom_padding', '100' ); $custom .= ".page-wrap { padding-top:" . intval( esc_attr( $pg_top_padding ) ) . "px;}"."\n"; $custom .= ".page-wrap { padding-bottom:" . intval( esc_attr ( $pg_bottom_padding ) ) . "px;}"."\n"; //Small screens font sizes $custom .= "@media only screen and (max-width: 780px) { h1 { font-size: 32px;} h2 { font-size: 28px;} h3 { font-size: 22px;} h4 { font-size: 18px;} h5 { font-size: 16px;} h6 { font-size: 14px;} }" . "\n"; $custom .= "@media only screen and (max-width: 767px) { .header-content .maintitle, .slider-content .maintitle { font-size: 32px;} }" . "\n"; $custom .= "@media only screen and (max-width: 479px) { .header-content .maintitle, .slider-content .maintitle { font-size: 20px;} .header-content .subtitle, .slider-content .subtitle { font-size: 18px; } }" . "\n"; //Wc shop page sidebar if(get_theme_mod('wc_content_location')){ $wc_content_location = get_theme_mod('wc_content_location', 'right'); $custom .= ".woocommerce .content-area, .woocommerce-cart .content-area, .woocommerce-checkout .content-area {float: ".esc_attr ( $wc_content_location ) .";}"; } //Output all the styles wp_add_inline_style( 'bizworx-style', $custom ); } add_action( 'wp_enqueue_scripts', 'bizworx_custom_styles' );