Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google fonts are not loading in admin after 3.0.36 update #2099

Closed
DeoThemes opened this issue Feb 25, 2019 · 1 comment
Closed

Google fonts are not loading in admin after 3.0.36 update #2099

DeoThemes opened this issue Feb 25, 2019 · 1 comment

Comments

@DeoThemes
Copy link

DeoThemes commented Feb 25, 2019

After updating to 3.0.36 version, Google fonts seems to stop loading in the admin screen. I think someone else referenced about this issue - #2009 (comment)

Code to reproduce the issue

// Body typography control
    Kirki::add_field( 'deo_config', array(
        'type'        => 'typography',
        'settings'    => 'deo_body_typography',
        'section'     => 'deo_typography',
        'default'     => array(
            'font-family'    => 'Roboto',
            'font-size'      => '15px',
            'line-height'    => '1.5',
        ),
        'choices'  => array(
            'variant' => array(
                '700',
                '500',
                'italic',
            ),
        ),
        'output' => array(
            array(
                'element' => $selector['text'],
            ),
            array(
                'element' => '.edit-post-visual-editor .editor-block-list__block,
                .edit-post-visual-editor .editor-block-list__block p:not(.wp-block-cover-text),
                .edit-post-visual-editor .editor-block-list__block-edit,
                .edit-post-visual-editor',
                'context' => array( 'editor' ),
            )
        )
    ));
@aristath
Copy link
Contributor

@DeoThemes thank you for reporting this.
I believe that last commit fixed the issue, you can test it on the develop branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants