WordPress / API Reference
elementor_set_element_custom_css
Elementor tool. Set custom CSS code on a specific Elementor element (Elementor Pro 'Custom CSS' tab). CSS is scoped to the element's selector automatically.
This is a write tool: it sets element custom css in your WordPress account. Claude asks you to confirm before it runs.
Ask Claude
You do not call this tool yourself. Ask for the outcome and the client picks the tool:
Set element custom css in my WordPress account for [page id], [element id], [css].
It takes 3 required and 1 optional parameter.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page_id | integer | Yes | Page Id |
element_id | string | Yes | Element Id |
css | string | Yes | Css |
page_type | string | No | Page Type |
Related WordPress tools
elementor_set_element_animationelementor_set_element_attributeselementor_set_element_backgroundelementor_set_element_background_overlayelementor_set_element_blend_modeelementor_set_element_border
Start free — 30 tool calls a month
No card required. Connect Google Ads, Meta Ads, GA4 or Search Console and ask Claude for the outcome — it picks the tool.