disable kirki-inline-styles
-
Hey!
After the upgade from verion 3.1.9 to 4.0.22 the hidden kirki-inline-styles are shown again.
In versions 3.1.9 exists a global, which allows to hide it completele. But it doesn’t work anymore in version 4x.
if ( ! defined( 'KIRKI_NO_OUTPUT' ) ) { define( 'KIRKI_NO_OUTPUT', true ); }
After some research I found a old answer on Github, where it recommended to use the following way to hide it. https://github.com/kirki-framework/kirki/issues/276#issuecomment-184450469
Kirki::add_config( 'my_theme', array( 'capability' => 'edit_theme_options', 'option_type' => 'theme_mod', 'option_name' => '', 'disable_output' => true, ) );
This hides the styles but not the style-tag itself, it is always there but empty. How can I hide it too?
<style id="kirki-inline-styles"></style>
Thanks in advance
N
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘disable kirki-inline-styles’ is closed to new replies.