New in Breakdance 1.7, hooks are available to add your own controls to the Breakdance Global Settings panel.
To add a new control section to the Breakdance builder, use the add_filter
function with the breakdance_global_settings_control_sections_append
hook. This allows for appending new control sections to the existing control sections.
In the filter, create new control sections with the desired controls. For an exhaustive list of control types and their options, simply produce them visually using Element Studio, and then paste in the generate code (the c function returns a control section).
Return a Control[] from this filter.
To output CSS based on the control values, append a string containing CSS rules to the existing global settings Twig template. In this Twig template, you can output CSS dynamically based on the value of the controls.
Return string from this filter.
If a control value needs to be available at breakpoints other than the base breakpoint, the path to that control must be whitelisted.
Return string[] from this filter.