redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Font weight and font style set to normal by default

Open consi9liere opened this issue 12 years ago • 2 comments

Hello,

I have a question regarding the typography field. Why are font-weight and font-style set to normal by default in typography field, even if I disable them in field setup? I want only font-family to be set, but style and weight are added automatically.

My custom theme's using WP 4.0 with Redux 3.3.8.4.

array( 'id' => 'opt-font-cursive', 'type' => 'typography', 'title' => __( 'Cursive Font', 'boutique' ), 'subtitle' => __( 'Specify the cursive font.', 'boutique' ), 'desc' => __( 'This font is used for blockquotes.', 'boutique' ), 'output' => array( 'blockquote' ), 'compiler' => true, 'font-style' => false, 'font-weight' => false, 'font-size' => false, 'subsets' => false, 'line-height' => false, 'text-align' => false, 'color' => false, 'default' => array( 'font-family' => 'Abel', ), )

It generates this style code:

blockquote{font-family:Abel;font-weight:normal;font-style:normal;}

This hard-coded style and weight values override my other styles.

Thanks!

consi9liere avatar Oct 08 '14 12:10 consi9liere

Fixed with v3.3.8.6 :)

kprovance avatar Oct 09 '14 00:10 kprovance

Thanks a lot for a super-quick response! ;)

consi9liere avatar Oct 09 '14 09:10 consi9liere