bricks_append_elements
Add new Bricks elements to an existing page without replacing current content. Automatically creates a backup and reuses theme tokens to keep the design consistent.
Instructions
Append elements to an existing page without replacing existing content. Elements are added after existing elements. Automatically creates a backup before writing (plugin-side, cannot be skipped). THEME-FIRST: before generating elements, call bricks_get_theme_styles and bricks_list_global_classes — reuse existing tokens (button styles, utility classes, color palette) instead of inline styling. For buttons prefer settings.style: "primary"|"secondary" over manual _background/_typography. For links use the text-link element, not a styled text-basic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | WordPress page/post ID | |
| elements | Yes | Array of Bricks elements to append | |
| parent_id | No | Parent element ID to append under (optional, appends at root level if omitted) | |
| regenerate_css | No | Whether to regenerate CSS after appending (default: true) |