38, '2' => 34, '3' => 30, '4' => 26, '5' => 24, '6' => 18, ); for ($i = 1; $i <= 6; $i++) { $heading[$i] = absint( get_theme_mod( 'bootstrap_coach_heading_' . $i . '_size', absint( $default_size[$i] ) ) ); } $dynamic_css = "\r\n :root {\r\n --primary-color: {$primary_color};\r\n --secondary-color: {$secondary_color};\r\n --dark-color: {$dark_color};\r\n --light-color: {$light_color};\r\n --text-color: {$text_color};\r\n\r\n --body-font: {$body_font_family};\r\n --heading-font: {$heading_font_family};\r\n --heading-weight: {$heading_font_weight};\r\n \r\n --h1-size: {$heading[1]}px;\r\n --h2-size: {$heading[2]}px;\r\n --h3-size: {$heading[3]}px;\r\n --h4-size: {$heading[4]}px;\r\n --h5-size: {$heading[5]}px;\r\n --h6-size: {$heading[6]}px;\r\n \r\n }\r\n /* site title size */\r\n .site-title a{ font-size: {$site_title_size}" . "px; font-family: {$site_identity_font_family}; color: {$site_title_color}; }\r\n \r\n header .custom-logo-link img{ height: {$logo_size}" . "px; }\r\n\r\n /* font family */\r\n html,:root{ font-size: {$font_size};}\r\n\r\n body{line-height: {$body_line_height}; font-weight:{$body_font_weight}; }\r\n\r\n .testimonial:before{\r\n background-image: url({$bc_image_for_testimonial});\r\n }\r\n "; wp_add_inline_style( 'bootstrap-coach-style', $dynamic_css ); } add_action( 'wp_enqueue_scripts', 'bootstrap_coach_dynamic_css' );