Important:
This support area is for Kalium 3 users only.
Support for Kalium 4 has moved to our new platform at support.laborator.co.
If you’re using Kalium 4, please create a new account there using your email and license key. A password will be sent to you automatically.
Please, fix error in your file kalium/tpls/logo.php:
from:
to:
Hi Guzenko,
This function
generate_custom_stylehas @media declaration optional, see how its declareted:function generate_custom_style( $selector, $props = '', $media = '', $footer = false ) {
global $bottom_styles;
$css = '';
// Selector Start
$css .= $selector . ' {' . PHP_EOL;
// Selector Properties
$css .= str_replace( ';', ';' . PHP_EOL, $props );
$css .= PHP_EOL . '}';
// Selector End
// Media Wrap
if ( trim( $media ) ) {
if ( strpos( $media, '@' ) != 0 ) {
$css = "@media {$media} { {$css} }";
} else {
$css = "{$media} { {$css} }";
}
}
if ( ! $footer || defined( 'DOING_AJAX' ) ) {
echo "{$css}";
return;
}
$bottom_styles[] = $css;
}
So we have simplified the usage of this function. It will work in both versions.