Support » Plugin: Kirki Customizer Framework » many problems with plugin kirki

  • cantoostinato8989

    (@cantoostinato8989)


    Hello, we have plugin kirki with template OnAir2. When i tyred to improve code of css style id=”kirki-inline-styles” (why is it inline?) delete extra fonts like greek (we donr need them) in files

    class-kirki-fonts.php
    class-kirki-modules-webfonts-async.php
    class-kirki-modules-webfonts-embed.php

    in folder ../wp-content/plugins/ttg-core/inc/backend/kirki/modules/webfonts

    and in postmessage.js in folder ../wp-content/plugins/ttg-core/inc/backend/kirki/modules/postmessage

    we have errors in php logs like this PHP Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() and etc.

    Althou i restore files as before.

    Pl tell us can we delete your plugin at all, and how to do that?

    We can just use some css rules but we dont want this strange plugin on our site.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter cantoostinato8989

    (@cantoostinato8989)

    Dear friends, we have found the solution of problem on the github. And now – kirki inline styles ( that annoyed us) are being output to external css files.

    See this issue https://github.com/kirki-framework/kirki/issues/2186

    Onuro commented on 25 Jun 2019 • 
    It's easy :) Add this to your functions.php
    
    However, I stopped using this method to avoid an additional request it creates on each page. It's bad for pagespeed and SEO.
    
    /*= Use External stylesheet for Kirki generated styles =*/
    /*=============================================<<<<<*/
    if (!is_customize_preview() ) {
    	add_filter( 'kirki_output_inline_styles', '__return_false' );
    }
    add_filter( 'kirki/config', function( $config = array() ) {
        $config['styles_priority'] = 10;
        return $config;
    } );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.