Can’t set “inherit” as default in Typography Control
-
Hi there,
Since the last update, it seems that you cannot set or even select “inherit” in the typography control. We had discussed adding “inherit” in this thread https://www.ads-software.com/support/topic/inherit-and-typography-control/ and it was working, but with this new version it seems set on “initial” and you can’t select “inherit”.
This is how I have my control set up
TotalPress_Kirki::add_field('totalpress_theme_customizer',array( 'type' => 'typography', 'settings' => 'totalpress_theme_body_font', 'label' => esc_html__('Text','totalpress' ), 'tooltip' => esc_html__('Change the font family of your theme.','totalpress'), 'section' => 'totalpress_typography_section', 'priority' => 1, 'transport' => 'auto', 'default' => array( 'font-family' => 'inherit', 'variant' => 'regular', 'font-size' => '17px', 'line-height' => '1.5', 'letter-spacing' => '0', 'text-transform' => 'none' ), 'choices' => array( 'fonts' => array( 'standard' => array( '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', ), 'google' => array(), ), ), 'choices' => array( 'variant' => array( 'regular','100','100italic','200','200italic','300','300italic','regular','italic','500','500italic','600','600italic','700','700italic','800','800italic','900','900italic', ), ), 'output' => array( array( 'element' => 'body', 'function' => 'css', 'property' => 'font-family,font-size,font-weight,line-height,letter-spacing,text-transform', ), ), ));
This has been working for a while now with the exception of what I wrote above.
Any ideas? Thanks in advance.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Can’t set “inherit” as default in Typography Control’ is closed to new replies.