30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Update Elementor Template

elementor/update-template updates a template: its title, its page settings, or its full data tree.

The data replacement is the destructive part and is guarded accordingly.

Before you run it

Replacing the data tree replaces the whole design. For a Theme Builder template that is live, the change takes effect everywhere its conditions match, immediately — a header template overwritten with something wrong is wrong on every page of the site at once. force_replace guards the destructive shape; take a copy with elementor/export-template first.

At a glance

Abilityelementor/update-template
ToolsetElementor — toolset/elementor
GroupElementor › Templates & Theme Builder
RequiresElementor, active on the site
Capabilitymanage_options
SafetyDestructive when replacing the data tree. Guarded by force_replace.
RepeatableNot idempotent — each call changes the row set, so re-running is not a no-op
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Title and settings changes are ordinary. The data tree is different in kind: it is the template’s entire design, and replacing it is replacing the template.

For a live Theme Builder template that lands everywhere at once. A header applies to every page matching its conditions, so an overwrite is a site-wide change with no staging step between the write and the front end.

Exporting first is the practical mitigation — elementor/export-template produces a payload that elementor/import-template can bring back.

For editing rather than replacing, the element abilities work on templates as they do on pages: a template is a post, and its elements have IDs.

Elementor generates a CSS file per post and caches it. A change to the document does not change the rendered page until that CSS is regenerated, which is why elementor/clear-cache is the second half of several operations here.

Not idempotent when replacing data, since the payload’s element IDs may be regenerated.

Input

NameTypeRequiredWhat it is
template_idintegerYesThe template post ID.
titlestringNoA new title.
page_settingsobjectNoDocument-level settings.
dataarrayNoA replacement document tree.
force_replacebooleanFor data replacementRequired when overwriting the existing data tree.

What comes back

NameTypeWhat it is
template_idintegerThe template written.
updatedarrayWhat changed.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Rename template 640.

It resolves to one call:

{
  "ability": "elementor/update-template",
  "parameters": {
    "template_id": 640,
    "title": "Main header (2026)"
  }
}

Worth knowing

  • A live Theme Builder template changes the whole site the moment it is written.
  • Export first when replacing data.
  • The element abilities work on templates too, for ordinary edits.
  • Clear the Elementor cache afterwards.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading