-
Notifications
You must be signed in to change notification settings - Fork 11
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.
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.
function my_css_properties( $properties ) {
$properties['toolbelt-spacing'] = '10px';
return $properties;
}
add_filter( 'toolbelt_css_properties', 'my_css_properties' );
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;
}
Toolbelt is built by Ben from Pro Theme Design.