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

Start free trial

Duplicate Elementor Template

elementor/duplicate-template duplicates a saved template with fresh element IDs, preserving its type, conditions and sub-type.

Preserving the conditions is the decision worth knowing about.

At a glance

Abilityelementor/duplicate-template
ToolsetElementor — toolset/elementor
GroupElementor › Templates & Theme Builder
RequiresElementor, active on the site
Capabilitymanage_options
SafetyWrites data
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

The copy inherits where it applies

A duplicated Theme Builder template arrives with the same display conditions as its source, which means two templates now claim the same part of the site.

Elementor resolves that by specificity and order, and the result is one of them rendering and the other not — which looks like the duplicate silently failing.

That is the right default nonetheless: a duplicate is usually made to become the replacement, and losing the conditions would mean reconstructing them by hand. But the conditions need changing on one of the two before both are live.

Element IDs must be unique within a document. Two elements sharing an ID is a state Elementor does not expect, and the symptoms — an edit landing on the wrong element, a duplicate that disappears — are hard to trace back to the cause.

The safe pattern is duplicate, edit the copy, adjust conditions on both so only one claims each target, then trash the original.

Not idempotent — each call produces another copy.

Input

NameTypeRequiredWhat it is
template_idintegerYesThe template post ID.

What comes back

NameTypeWhat it is
template_idintegerThe new template.
source_template_idintegerWhat it was copied from.
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:

Duplicate the header template so I can try a variation.

It resolves to one call:

{
  "ability": "elementor/duplicate-template",
  "parameters": {
    "template_id": 640
  }
}

Worth knowing

  • Conditions are preserved, so two templates now claim the same targets.
  • Adjust conditions before both are live.
  • Element IDs are regenerated.
  • Not idempotent.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading