= 10 && $automobile_shop_logo_size < 100) { $automobile_shop_custom_style .=' .custom-logo-link img {'; $automobile_shop_custom_style .=' width: '.esc_attr($automobile_shop_logo_size).'%;'; $automobile_shop_custom_style .=' }'; } } // Site Title Font Size $automobile_shop_site_title_font_size = get_theme_mod('automobile_shop_site_title_font_size'); if( $automobile_shop_site_title_font_size != ''){ $automobile_shop_custom_style .=' .logo h1.site-title, .logo p.site-title {'; $automobile_shop_custom_style .=' font-size: '.esc_attr($automobile_shop_site_title_font_size).'px;'; $automobile_shop_custom_style .=' }'; } // Site Tagline Font Size $automobile_shop_site_tagline_font_size = get_theme_mod('automobile_shop_site_tagline_font_size'); if( $automobile_shop_site_tagline_font_size != ''){ $automobile_shop_custom_style .=' p.site-description{'; $automobile_shop_custom_style .=' font-size: '.esc_attr($automobile_shop_site_tagline_font_size).'px;'; $automobile_shop_custom_style .=' }'; } //layout width $automobile_shop_boxfull_width = get_theme_mod('automobile_shop_boxfull_width'); if ($automobile_shop_boxfull_width !== '') { switch ($automobile_shop_boxfull_width) { case 'container': $automobile_shop_custom_style .= ' body, #header, .bottom-header { max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }'; break; case 'container-fluid': $automobile_shop_custom_style .= ' body, #header, .bottom-header { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }'; break; case 'none': // No specific width specified, so no additional style needed. break; default: // Handle unexpected values. break; } } //Menu animation $automobile_shop_dropdown_anim = get_theme_mod('automobile_shop_dropdown_anim'); if ( $automobile_shop_dropdown_anim != '') { $automobile_shop_custom_style .=' .nav-menu ul ul {'; $automobile_shop_custom_style .=' animation:'.esc_attr($automobile_shop_dropdown_anim).' 1s ease;'; $automobile_shop_custom_style .=' }'; } // Header Image $header_image_url = automobile_shop_banner_image( $image_url = '' ); if( $header_image_url != ''){ $automobile_shop_custom_style .=' #inner-pages-header {'; $automobile_shop_custom_style .=' background-image: url('. esc_url( $header_image_url ).'); background-size: cover; background-repeat: no-repeat; background-attachment: fixed;'; $automobile_shop_custom_style .=' }'; $automobile_shop_custom_style .=' .header-overlay {'; $automobile_shop_custom_style .=' position: absolute; width: 100%; height: 100%; top: 0; left: 0; background: #000; opacity: 0.4;'; $automobile_shop_custom_style .=' }'; } else { $automobile_shop_custom_style .=' #inner-pages-header {'; $automobile_shop_custom_style .=' background: linear-gradient(0deg,#eceffc,#cecece 80%) no-repeat; '; $automobile_shop_custom_style .=' }'; } $automobile_shop_slider_hide_show = get_theme_mod('automobile_shop_slider_hide_show',false); if( $automobile_shop_slider_hide_show == true){ $automobile_shop_custom_style .=' .page-template-custom-home-page #inner-pages-header {'; $automobile_shop_custom_style .=' display:none;'; $automobile_shop_custom_style .=' }'; } //slider css $automobile_shop_slider_title_font_size = get_theme_mod('automobile_shop_slider_title_font_size'); if( $automobile_shop_slider_title_font_size != ''){ $automobile_shop_custom_style .=' #slider h2 {'; $automobile_shop_custom_style .=' font-size: '.esc_attr($automobile_shop_slider_title_font_size).'px;'; $automobile_shop_custom_style .=' }'; } $automobile_shop_slider_text_font_size = get_theme_mod('automobile_shop_slider_text_font_size'); if( $automobile_shop_slider_text_font_size != ''){ $automobile_shop_custom_style .=' #slider p {'; $automobile_shop_custom_style .=' font-size: '.esc_attr($automobile_shop_slider_text_font_size).'px;'; $automobile_shop_custom_style .=' }'; } $automobile_shop_slider_opacity = get_theme_mod('automobile_shop_slider_opacity'); if ( $automobile_shop_slider_opacity != '') { $automobile_shop_custom_style .=' #slider .slider-img:after{'; $automobile_shop_custom_style .=' opacity:'.esc_attr($automobile_shop_slider_opacity).';'; $automobile_shop_custom_style .=' }'; } $automobile_shop_slider_text_color = get_theme_mod('automobile_shop_slider_text_color'); if ( $automobile_shop_slider_text_color != '') { $automobile_shop_custom_style .=' #slider p a{'; $automobile_shop_custom_style .=' color:'.esc_attr($automobile_shop_slider_text_color).';'; $automobile_shop_custom_style .=' }'; } $automobile_shop_slider_color = get_theme_mod('automobile_shop_slider_color'); if ( $automobile_shop_slider_color != '') { $automobile_shop_custom_style .=' #slider h2{'; $automobile_shop_custom_style .=' color:'.esc_attr($automobile_shop_slider_color).';'; $automobile_shop_custom_style .=' }'; } $automobile_shop_slider_btn_color = get_theme_mod('automobile_shop_slider_btn_color'); if ( $automobile_shop_slider_btn_color != '') { $automobile_shop_custom_style .=' #slider a.read-btn span, .article_content .read-btn a span{'; $automobile_shop_custom_style .=' color:'.esc_attr($automobile_shop_slider_btn_color).';'; $automobile_shop_custom_style .=' }'; } $automobile_shop_slider_btnbdr_color = get_theme_mod('automobile_shop_slider_btnbdr_color'); if ( $automobile_shop_slider_btnbdr_color != '') { $automobile_shop_custom_style .=' #slider a.read-btn, .article_content .read-btn a{'; $automobile_shop_custom_style .=' border-color:'.esc_attr($automobile_shop_slider_btnbdr_color).';'; $automobile_shop_custom_style .=' }'; } $automobile_shop_slider_btnbg_color = get_theme_mod('automobile_shop_slider_btnbg_color'); if ( $automobile_shop_slider_btnbg_color != '') { $automobile_shop_custom_style .=' #slider .slider-img:after{'; $automobile_shop_custom_style .=' background-color:'.esc_attr($automobile_shop_slider_btnbg_color).';'; $automobile_shop_custom_style .=' }'; } //Services css $automobile_shop_small_title_font_size = get_theme_mod('automobile_shop_small_title_font_size'); if( $automobile_shop_small_title_font_size != ''){ $automobile_shop_custom_style .=' #service-section p.small-title {'; $automobile_shop_custom_style .=' font-size: '.esc_attr($automobile_shop_small_title_font_size).'px;'; $automobile_shop_custom_style .=' }'; } $automobile_shop_section_title_font_size = get_theme_mod('automobile_shop_section_title_font_size'); if( $automobile_shop_section_title_font_size != ''){ $automobile_shop_custom_style .=' #service-section h3 {'; $automobile_shop_custom_style .=' font-size: '.esc_attr($automobile_shop_section_title_font_size).'px;'; $automobile_shop_custom_style .=' }'; }