Typography doesn’t apply on frontend, only in customizer mode
-
Hello,
thank you very much for your plugin. It’s not the first time I use it and it’s really great.
I never used typography control before. The problem I have is simple – whatever I do, the font customization only works in customizer mode. As soon as I save it, and then close customizer or just reload the page, fonts are back to default. So only javascript of the controls affect the page as soon as IU’m in customizer mode. But not the frontend part that supposes to enqueue saved (options is really saved fine) google fonts files. Other controls are working fine.
// Config Kirki::add_config( 'twentysixteen', array( 'capability' => 'edit_theme_options', 'option_type' => 'theme_mod', ) ); Kirki::add_section( 'theme_typography', array( 'title' => esc_html__( 'Typography', 'twentysixteen' ), 'priority' => 100, 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'color_theme', [ 'type' => 'typography', 'settings' => 'twentysixteen-body_font', 'label' => esc_html__( 'Body', 'twentysixteen' ), 'section' => 'theme_typography', 'default' => [ 'font-family' => 'Montserrat', 'variant' => '300', 'font-size' => '17px', 'line-height' => '1.6', 'color' => '#181818', 'text-transform' => 'none', ], 'priority' => 10, 'transport' => 'auto', 'output' => [ [ 'element' => 'body', ], ], ] );Am I missing something simple? I read the documentation and search on this support forum, but looks like I am the only one who has such a problem.
Thank you.
The topic ‘Typography doesn’t apply on frontend, only in customizer mode’ is closed to new replies.