elementor / elementor/elementor

Using a template widget loses styling when placed into a theme builder template in Editor

Open
#15,525 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

## Prerequisites

- [x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- [x] The issue still exists against the latest stable version of Elementor.

## Description

I have encountered an issue/bug using template widgets in theme builder templates where the template pulled in by the widget will lose all styling in the Editor. This is present in latest versions of Elementor at time of writing (3.2.5 & Pro 3.2.2).

I often need to create global templates which I can edit in one place but include on many pages or theme builder templates. I've noticed when I include them in theme builder templates, the widget pulls in the template but it is not styled correctly in the editor. Once you view a page using the theme builder template on the front-end the template widget loads styles for templated item as expected. Also when using the template widget in a normal page or post it works as expected.

So this looks to be an isolated issue with rendering the template via the template widget in theme builder editor only, however this is not ideal as for someone working on theme builder templates the widget/styling looks broken.

## Steps to reproduce

1. Create a section template with some styled widgets & content
2. Create a theme builder template and apply the previous section template using a template widget
3. See if the section template pulled in via template widget looks correct

## Isolating the problem

- [x] This bug happens with only Elementor plugin active (and Elementor Pro).
- [x] This bug happens with a default WordPress theme active.
- [x] I can reproduce this bug consistently using the steps above.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.