Extension point for Theme Builder template card header #36429
Hug0-Drelon
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the Problem
Description
On multilingual sites, Theme Builder often contains multiple templates with similar names across languages (e.g. "Header", "Footer", "Single Post"). We need a supported way to show per-template metadata — such as a language flag — directly on the card, next to the title.
What works today
Elementor Pro exposes a server-side filter:
apply_filters( 'elementor-pro/site-editor/data/template', $data );This allows attaching extra per-template data (e.g. a flag URL). Other features already use this filter, which suggests the data layer is intended for extension.
The gap
In
SiteTemplateHeader, the title is rendered as plain text:Because React escapes
title, there is no supported way to render extra UI from that filtered data. HTML intitleis not an option.Use case
Any plugin that needs to display metadata on Theme Builder cards: language, translation status, site/group, custom badges, etc.
Environment
Propose a Solution
Request
Please provide an official extension point around the template card header, for example:
site-editor/template-card/header-after-title)SiteTemplateHeadercan render (image, badge, etc.)$ehook fired when the card header rendersAdditional Context
Using DOM marker + TreeWalker, not ideal because of React re-renders.
Agreement
All reactions