• Hi Aristeides,

    I would like to know how uploads/kirki-css is used as, when I am changing any style in customizer section, I do not see any css getting saved there, so why this directory is present, what its use? Please give me better idea on this. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there!

    There are 2 modes that kirki can use to output its CSS: inline, or to a file.
    By default we use the inline mode, and if a theme developer chooses they can use a filter to change the default behaviour and switch to file mode.
    The file only gets created when that kirki/dynamic_css/method filter is used and set to file.

    You don’t really need to change that, but if someone wanted to force the use of the file method, they would do this:

    
    add_filter( 'kirki/dynamic_css/method', function() {
        return 'file';
    });
    

    If to force the use of the inline method, you’d do this:

    
    add_filter( 'kirki/dynamic_css/method', function() {
        return 'inline';
    });
    

    The CSS in both cases is exactly the same, some theme authors just prefer one method while others prefer the other.

    In your case I can think of these possibilities:

    * The theme that was using that filter is no longer used.
    * The theme uses that filter but for some reason the file or folder permissions changes so WordPress doesn’t have write permissions to that file and therefore fallsback to the inline method
    * The theme was using the filter at some point in the past but doesn’t use it any longer.

    Try deleting the uploads/kirki-css folder.
    Does it get regenerated?
    If it gets regenerated but when you change your settings in the customizer (settings that actually change the CSS) the file doesn’t get updated, then there’s a problem and I’ll need more details to resolve it.
    If it doesn’t get regenerated, then the filter is no longer used by whatever was using it to write the styles to file so there’s no problem, it’s just a remnant of something older.

    Thread Starter Prafulla Kumar Sahu

    (@prafulla)

    Thank you for this info.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How uploads/kirki-css is used?’ is closed to new replies.