bricks_apply_class_to_element
Apply or remove global CSS classes on single or multiple page elements. Use bulk operations to update class assignments across many elements in one call.
Instructions
Apply or remove global CSS classes on page elements. Supports single element or bulk operations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Page ID containing the element(s) | |
| class_id | No | Global class ID (for single operation) | |
| element_id | No | Element ID (for single operation) | |
| operations | No | Bulk operations: [{ element_id, class_ids: [...], action: "add"|"remove" }] |