32, '2' => 28, '3' => 24, '4' => 21, '5' => 15, '6' => 12, ); for( $i = 1; $i <= 6 ; $i++ ) { $heading[$i] = absint( get_theme_mod( 'alley_themes_heading_' . $i . '_size', absint( $default_size[$i] ) ) ); } $dynamic_css = " :root { --primary-color: $primary_color; --secondary-color: $secondary_color; --text-color: $text_color; --accent-color: $accent_color; --light-color: $light_color; --dark-color: $dark_color; --grey-color: $grey_color; } /* font family */ body{ font: $body_font_weight"." $font_size"." $font_family; line-height: {$body_line_height};} h1{ font: $heading_font_weight {$heading[1]}"."px $heading_font_family } h2{ font: $heading_font_weight {$heading[2]}"."px $heading_font_family } h3{ font: $heading_font_weight {$heading[3]}"."px $heading_font_family } h4{ font: $heading_font_weight {$heading[4]}"."px $heading_font_family } h5{ font: $heading_font_weight {$heading[5]}"."px $heading_font_family } h6{ font: $heading_font_weight {$heading[6]}"."px $heading_font_family } h1,h2,h3,h4,h5,h6{ line-height: {$header_line_height}; } /* site title size */ .site-title a{color: $site_title_color;} .site-title{font-size: $site_title_size"."px; font-family: {$site_identity_font_family}; } header .custom-logo{ height: {$logo_size}"."px; } /* container width */ .container{max-width: {$container_width}"."px; } /* Footer widget font Colors */ .site-footer .widget-title{font-family: $footer_font_family;} "; wp_add_inline_style( 'alley-themes-dynamic-css', $dynamic_css ); } add_action( 'wp_enqueue_scripts', 'alley_themes_dynamic_css' );