li > a{color:{$automobile_elementor_link_clr}} #open-above-menu.automobile-elementor-menu > li > a:hover,#open-above-menu.automobile-elementor-menu li a:hover{color:{$automobile_elementor_link_hvr_clr}}"; // loader $automobile_elementor_loader_bg_clr = esc_html(get_theme_mod('automobile_elementor_loader_bg_clr','#9c9c9')); $automobile_elementor_style.=".automobile_elementor_overlayloader{background-color:{$automobile_elementor_loader_bg_clr}}"; //Move to top $automobile_elementor_move_to_top_bg_clr = esc_html(get_theme_mod('automobile_elementor_move_to_top_bg_clr')); $automobile_elementor_move_to_top_icon_clr = esc_html(get_theme_mod('automobile_elementor_move_to_top_icon_clr')); $automobile_elementor_style.="#move-to-top{background:{$automobile_elementor_move_to_top_bg_clr};color:{$automobile_elementor_move_to_top_icon_clr}}"; // Slider BG $automobile_elementor_lay3_bg_img_ovrly = esc_html(get_theme_mod('automobile_elementor_lay3_bg_img_ovrly','#eaeaea')); $automobile_elementor_lay3_bg_background_image_url = esc_url(get_theme_mod('automobile_elementor_lay3_bg_background_image_url','')); $automobile_elementor_lay3_bg_background_repeat = esc_html(get_theme_mod('automobile_elementor_lay3_bg_background_repeat','no-repeat')); $automobile_elementor_lay3_bg_background_position = esc_html(get_theme_mod('automobile_elementor_lay3_bg_background_position','center center')); $automobile_elementor_lay3_bg_background_size = esc_html(get_theme_mod('automobile_elementor_lay3_bg_background_size','auto')); $automobile_elementor_lay3_bg_background_attach = esc_html(get_theme_mod('automobile_elementor_lay3_bg_background_attach','scroll')); $automobile_elementor_style.=".texture-slider-section.slide-layout-3:before{background:{$automobile_elementor_lay3_bg_img_ovrly}}"; $automobile_elementor_style.=".texture-slider-section.slide-layout-3{background-image:url($automobile_elementor_lay3_bg_background_image_url); background-repeat:{$automobile_elementor_lay3_bg_background_repeat}; background-position:{$automobile_elementor_lay3_bg_background_position}; background-size:{$automobile_elementor_lay3_bg_background_size}; background-attachment:{$automobile_elementor_lay3_bg_background_attach};}"; // ribbon $automobile_elementor_ribbon_bg_img_url = esc_url(get_theme_mod('automobile_elementor_ribbon_bg_img_url',AUTOMOBILE_ELEMENTOR_THEME_URI .'assets/img/ribbon.jpg')); $automobile_elementor_ribbon_bg_background_repeat = esc_html(get_theme_mod('automobile_elementor_ribbon_bg_background_repeat','no-repeat')); $automobile_elementor_ribbon_bg_background_position = esc_html(get_theme_mod('automobile_elementor_ribbon_bg_background_position','center center')); $automobile_elementor_ribbon_bg_background_size = esc_html(get_theme_mod('automobile_elementor_ribbon_bg_background_size','cover')); $automobile_elementor_ribbon_bg_background_attach = esc_html(get_theme_mod('automobile_elementor_ribbon_bg_background_attach','scroll')); $automobile_elementor_style.="section.texture-ribbon-section{background-image:url($automobile_elementor_ribbon_bg_img_url); background-repeat:{$automobile_elementor_ribbon_bg_background_repeat}; background-position:{$automobile_elementor_ribbon_bg_background_position}; background-size:{$automobile_elementor_ribbon_bg_background_size};}"; /**************************/ //Above Header Color Option /**************************/ $automobile_elementor_above_hd_bg_clr = esc_html(get_theme_mod('automobile_elementor_above_hd_bg_clr','#1f4c94')); $automobile_elementor_abv_header_background_image = esc_html( get_theme_mod('header_image')); $automobile_elementor_style.=".top-header:before{background:{$automobile_elementor_above_hd_bg_clr}}"; $automobile_elementor_style.= ".top-header{background-image:url($automobile_elementor_abv_header_background_image); }"; $automobile_elementor_abv_content_txt_clr = esc_html(get_theme_mod('automobile_elementor_abv_content_txt_clr','#fff')); $automobile_elementor_abv_content_link_clr = esc_html(get_theme_mod('automobile_elementor_abv_content_link_clr','#fff')); $automobile_elementor_style.= ".top-header .top-header-bar{color:{$automobile_elementor_abv_content_txt_clr}} .top-header .top-header-bar a{color:{$automobile_elementor_abv_content_link_clr}}"; /**************************/ //Main Header Color Option /**************************/ $automobile_elementor_main_hd_bg_clr = esc_html(get_theme_mod('automobile_elementor_main_hd_bg_clr','#2457AA')); $automobile_elementor_main_content_txt_clr = esc_html(get_theme_mod('automobile_elementor_main_content_txt_clr','#888')); $automobile_elementor_main_content_link_clr = esc_html(get_theme_mod('automobile_elementor_main_content_link_clr','#fff')); $automobile_elementor_style.=".main-header:before,.sticky-header:before, .search-wrapper:before{background:{$automobile_elementor_main_hd_bg_clr}} .site-description,main-header-col1,.header-support-content,.mhdrthree .site-description p{color:{$automobile_elementor_main_content_txt_clr}} .mhdrthree .site-title span a,.header-support-content a, .texture-icon .count-item,.main-header a,.texture-icon .cart-icon a.cart-contents,.sticky-header .site-title a{color:{$automobile_elementor_main_content_link_clr}}"; /**************************/ //Below Header Color Option /**************************/ $automobile_elementor_below_hd_bg_clr = esc_html(get_theme_mod('automobile_elementor_below_hd_bg_clr','#1f4c94')); $automobile_elementor_category_text_clr = esc_html(get_theme_mod('automobile_elementor_category_text_clr','')); $automobile_elementor_category_icon_clr = esc_html(get_theme_mod('automobile_elementor_category_icon_clr','')); $automobile_elementor_style.=".below-header:before{background:{$automobile_elementor_below_hd_bg_clr}} .menu-category-list .toggle-title,.toggle-icon{color:{$automobile_elementor_category_text_clr}} .below-header .cat-icon span{background:{$automobile_elementor_category_icon_clr}} "; /**************************/ //Header Square Icon Option /**************************/ $automobile_elementor_sq_icon_bg_clr = esc_html(get_theme_mod('automobile_elementor_sq_icon_bg_clr','#1f4c94')); $automobile_elementor_sq_icon_clr = esc_html(get_theme_mod('automobile_elementor_sq_icon_clr','#fff')); $automobile_elementor_style.=".header-icon a ,.header-support-icon a.whishlist ,.texture-icon .cart-icon a.cart-contents i,.cat-icon,.sticky-header .header-icon a , .sticky-header .texture-icon .cart-icon a.cart-contents,.responsive-main-header .header-support-icon a,.responsive-main-header .texture-icon .cart-icon a.cart-contents,.responsive-main-header .menu-toggle .menu-btn,.sticky-header-bar .menu-toggle .menu-btn,.header-icon a.account,.header-icon a.prd-search {background:{$automobile_elementor_sq_icon_bg_clr};color:{$automobile_elementor_sq_icon_clr}} .cat-icon span,.menu-toggle .icon-bar{background:{$automobile_elementor_sq_icon_clr}}"; /**************************/ //Main Menu /**************************/ $automobile_elementor_menu_link_clr = esc_html(get_theme_mod('automobile_elementor_menu_link_clr')); $automobile_elementor_menu_link_hvr_clr = esc_html(get_theme_mod('automobile_elementor_menu_link_hvr_clr')); $automobile_elementor_style.=".automobile-elementor-menu > li > a,.menu-category-list .toggle-title,.toggle-icon{color:{$automobile_elementor_menu_link_clr}} .automobile-elementor-menu > li > a:hover,.automobile-elementor-menu .current-menu-item a{color:{$automobile_elementor_menu_link_hvr_clr}}"; $automobile_elementor_sub_menu_bg_clr = esc_html(get_theme_mod('automobile_elementor_sub_menu_bg_clr')); $automobile_elementor_sub_menu_lnk_clr = esc_html(get_theme_mod('automobile_elementor_sub_menu_lnk_clr')); $automobile_elementor_sub_menu_lnk_hvr_clr = esc_html(get_theme_mod('automobile_elementor_sub_menu_lnk_hvr_clr')); $automobile_elementor_style.=".automobile-elementor-menu li ul.sub-menu li a{color:{$automobile_elementor_sub_menu_lnk_clr}} .automobile-elementor-menu li ul.sub-menu li a:hover{color:{$automobile_elementor_sub_menu_lnk_hvr_clr}} .automobile-elementor-menu ul.sub-menu{background:{$automobile_elementor_sub_menu_bg_clr}}"; if((bool)get_theme_mod('automobile_elementor_shadow_header')==true){ $automobile_elementor_style.="header{ box-shadow: 0 .125rem .3rem -.0625rem rgba(0,0,0,.03),0 .275rem .75rem -.0625rem rgba(0,0,0,.06)!important; position: relative; }"; } //Product title in single line $automobile_elementor_color_scheme = (bool)get_theme_mod('automobile_elementor_prdct_single',true); if($automobile_elementor_color_scheme==false){ $automobile_elementor_style.=".texture-woo-product-list .woocommerce-loop-product__title { overflow: hidden; text-overflow: inherit; display: inherit; -webkit-box-orient: inherit; -webkit-line-clamp: inherit; line-height: 24px; max-height: inherit;}"; } //Hide yith if WPC SMART Icon if( (class_exists( 'YITH_WCWL' )) ){ $automobile_elementor_style.=" .woocommerce .entry-summary .woosw-btn{ display:none; }"; }elseif((class_exists( 'WPCleverWoosw' ))){ $automobile_elementor_style.=" .woocommerce .entry-summary .yith-wcwl-add-to-wishlist{ display:none; }"; } if( (class_exists( 'YITH_Woocompare' )) ){ $automobile_elementor_style.=" .woocommerce .entry-summary .woosc-btn, .woocommerce-shop .woosc-btn{ display:none; }"; }elseif((class_exists( 'WPCleverWoosc' ))){ $automobile_elementor_style.=" .woocommerce .entry-summary a.compare.button{ display:none; }"; } return $automobile_elementor_style; } //start logo width function automobile_elementor_logo_width_responsive( $value, $dimension = 'desktop' ){ $custom_css = ''; switch ( $dimension ){ case 'desktop': $v3 = $value; break; case 'tablet': $v3 = $value; break; case 'mobile': $v3 = $value; break; } $custom_css .= '.texture-logo img,.sticky-header .logo-content img{ max-width: ' . $v3 . 'px; }'; $custom_css = automobile_elementor_add_media_query( $dimension, $custom_css ); return $custom_css; } // top header height function automobile_elementor_top_header_height_responsive( $value, $dimension = 'desktop' ){ $custom_css = ''; switch ( $dimension ){ case 'desktop': $v3 = $value; break; case 'tablet': $v3 = $value; break; case 'mobile': $v3 = $value; break; } $custom_css .= '.top-header .top-header-bar{ line-height: ' . $v3 . 'px; }'; $custom_css = automobile_elementor_add_media_query( $dimension, $custom_css ); return $custom_css; } function automobile_elementor_abv_hdr_botm_brd_responsive( $value, $dimension = 'desktop' ){ $custom_css = ''; switch ( $dimension ){ case 'desktop': $v3 = $value; break; case 'tablet': $v3 = $value; break; case 'mobile': $v3 = $value; break; } $custom_css .= '.top-header{ border-bottom-width: ' . $v3 . 'px; }'; $custom_css = automobile_elementor_add_media_query( $dimension, $custom_css ); return $custom_css; } // top footer height function automobile_elementor_top_footer_height_responsive( $value, $dimension = 'desktop' ){ $custom_css = ''; switch ( $dimension ){ case 'desktop': $v3 = $value; break; case 'tablet': $v3 = $value; break; case 'mobile': $v3 = $value; break; } $custom_css .= '.top-footer .top-footer-bar{ line-height: ' . $v3 . 'px; }'; $custom_css = automobile_elementor_add_media_query( $dimension, $custom_css ); return $custom_css; } function automobile_elementor_top_footer_border_responsive( $value, $dimension = 'desktop' ){ $custom_css = ''; switch ( $dimension ){ case 'desktop': $v3 = $value; break; case 'tablet': $v3 = $value; break; case 'mobile': $v3 = $value; break; } $custom_css .= '.top-footer{ border-bottom-width: ' . $v3 . 'px; }'; $custom_css = automobile_elementor_add_media_query( $dimension, $custom_css ); return $custom_css; } // below footer height function automobile_elementor_below_footer_height_responsive( $value, $dimension = 'desktop' ){ $custom_css = ''; switch ( $dimension ){ case 'desktop': $v3 = $value; break; case 'tablet': $v3 = $value; break; case 'mobile': $v3 = $value; break; } $custom_css .= '.below-footer .below-footer-bar{ line-height: ' . $v3 . 'px; }'; $custom_css = automobile_elementor_add_media_query( $dimension, $custom_css ); return $custom_css; } function automobile_elementor_below_footer_border_responsive( $value, $dimension = 'desktop' ){ $custom_css = ''; switch ( $dimension ){ case 'desktop': $v3 = $value; break; case 'tablet': $v3 = $value; break; case 'mobile': $v3 = $value; break; } $custom_css .= '.below-footer{ border-top-width: ' . $v3 . 'px; }'; $custom_css = automobile_elementor_add_media_query( $dimension, $custom_css ); return $custom_css; }