diff --git a/includes/output/field/class-kirki-output-field-typography.php b/includes/output/field/class-kirki-output-field-typography.php index 52fc0c310..3b7585279 100644 --- a/includes/output/field/class-kirki-output-field-typography.php +++ b/includes/output/field/class-kirki-output-field-typography.php @@ -51,9 +51,8 @@ protected function process_output( $output, $value ) { // Is this italic? $is_italic = ( false !== strpos( $value['variant'], 'italic' ) ); $this->styles[ $output['media_query'] ][ $output['element'] ]['font-weight'] = $font_weight; - if ( $is_italic ) { - $this->styles[ $output['media_query'] ][ $output['element'] ]['font-style'] = 'italic'; - } + $font_style = $is_italic ? 'italic' : 'normal' ; + $this->styles[ $output['media_query'] ][ $output['element'] ]['font-style'] = $font_style; } // Take care of font-size.