bricks_set_page_css
Sets custom CSS for any page or post via Bricks Builder, storing it in page meta for targeted styling.
Instructions
Set custom CSS for a page (stored in _bricks_page_css_2 post meta).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"post_id": "<post_id>",
"css": "<css>"
},
"name": "bricks_set_page_css"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site key for multi-site support. Available: main. Defaults to "main". | |
| post_id | Yes | The page/post ID | |
| css | Yes | CSS code to set for the page | |
| post_type | No | Post type slug. Use "pages" for pages, "posts" for posts, or any registered CPT slug (e.g., "product", "portfolio"). Defaults to "pages". |