Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Update Spacing Defaults

Home / Forums / Kadence Blocks / Update Spacing Defaults

This topic is: Awaiting Feedback
[Awaiting Feedback]
Posted in: Kadence Blocks

Tagged: ,

  • This topic has 1 reply, 2 voices, and was last updated 3 years ago by Eze.
March 23, 2023 at 8:15 am

I’m trying to update the default spacing for my Kadence blocks. I tried to overwrite them with css but the WP preset keeps taking precedence. I was able to update the default font sizes using a filter:

add_filter( ‘kadence_blocks_variable_font_sizes’, ‘change_kadence_blocks_variable_font_sizes’, 15 );
function change_kadence_blocks_variable_font_sizes() {
$arr = array(
‘xxxl’ => ‘clamp(4rem, 2.188rem + 9.063vw, 11.25rem)’,
);
return $arr;
}

What is the equivalent for spacing?

  • The forum ‘Kadence Blocks’ is closed to new topics and replies.