Hey there!
This will be included in the next version of the plugin.
If you want for now you can use the version from the github repository.
The way you’d do it is by using the ‘units’ argument:
'output' => array(
array(
'element' => 'body',
'property' => 'font-size',
'units' => 'px !important',
),
)
the “units” argument is basically just a suffix, so you can just add ' ! important' if you want there.
Thread Starter
rysan
(@rysan)
How could I add !important directive to color property?
Hey there,
you can use the !important directive as Aristeides mentioned above.
You can find an example of demo Kirki controls file in
https://gist.github.com/aristath/d778d2592a4a6ce8f640#file-kirki-demo-controls-php-L229-L262
Hope that helps,
Dimitris