Hi guys
Maybe I don’t fully understand what you are trying to do.
But if it is adding css attributes dynamically based on conditions or checks, isn’t the filter
add_filter( ‘bricks/element/set_root_attributes’, function( $attributes, $element )
exactly for this use case?
You could for example check in the filter which category the post belongs to and based on that set a different attribute class.
See this as an example what can be done dynamically
Cheers
Patric