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

Start free trial

Get Theme Builder Conditions

elementor/get-theme-builder-conditions returns the display conditions attached to an Elementor template.

For a Theme Builder template these decide where it renders; for a popup they decide where it can appear.

At a glance

Abilityelementor/get-theme-builder-conditions
ToolsetElementor — toolset/elementor
GroupElementor › Templates & Theme Builder
RequiresElementor, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Theme Builder templates take effect through display conditions: rules saying which parts of the site a header, footer, single or archive template applies to. A template with no conditions is a template that renders nowhere.

Conditions are include and exclude rules over parts of the site: the entire site, a post type, a taxonomy term, a specific post. They combine, and Elementor resolves overlaps by specificity — a condition naming one post beats one naming the whole site.

That resolution is why “the wrong header is showing” is a common and confusing problem. Two templates both match, one wins, and neither is broken.

Reading the conditions on both is how you find out which. There is no error and nothing in the interface says “this template lost”.

A template with no conditions renders nowhere — which is the correct state for a newly created one and looks like a broken template if you expected otherwise.

Input

NameTypeRequiredWhat it is
template_idintegerYesThe template post ID.

What comes back

NameTypeWhat it is
conditionsarrayThe include and exclude rules attached to the template.
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:

Where does this header template apply?

It resolves to one call:

{
  "ability": "elementor/get-theme-builder-conditions",
  "parameters": {
    "template_id": 640
  }
}

Worth knowing

  • Overlapping conditions are resolved by specificity, silently.
  • “The wrong header is showing” is usually two templates both matching.
  • No conditions means the template renders nowhere.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading