Skip to content

Customization

Ben Gillbanks edited this page Aug 26, 2019 · 3 revisions

Toolbelt modules are editable with filters, however there are also some global settings that can affect all/ many Toolbelt modules.

--toolbelt-spacing & toolbelt_css_properties

To make it easier to edit Toolbelt css I have added a css custom property that controls the spacing of elements. This can be edited directly in your theme/ child themes css. Or it can be changed with a php filter.

Edit with a PHP filter

function my_css_properties( $properties ) {
    $properties['toolbelt-spacing'] = '10px';
    return $properties;
}
add_filter( 'toolbelt_css_properties', 'my_css_properties' );

Edit with CSS

The plugin adds the value to the :root element so if we add a new property to the body then we will definitely override it.

body {
--toolbelt-spacing: 10px;
}

Clone this wiki locally