Skip to content

Commit d74c4e4

Browse files
Updated documentation clarifying legacy widget handling and future updates (#309)
* Update widget-inner-wrapper.md * Apply suggestions from code review Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 6dd0062 commit d74c4e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/widgets/widget-inner-wrapper.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ Elementor had previously utilized unoptimized markup. Nowadays, the only website
3434

3535
The number of wrapping elements that each widget needs is up to the widget developer.
3636

37-
If it's a legacy widget that requires both `<div>` wrappers, add the following method to the widget:
38-
37+
If it's a legacy widget that requires both `<div>` wrappers, as it requires the inner `.elementor-widget-container` wrapper, add the following method to the widget:
3938
```php
4039
public function has_widget_inner_wrapper(): bool {
4140
return true;
@@ -58,8 +57,9 @@ public function has_widget_inner_wrapper(): bool {
5857
}
5958
```
6059

61-
Whether the experiment is running or not, widgets that do not employ the `has_widget_inner_wrapper()` function will behave like unoptimized widgets with two wrapping `<div>` elements for backward compatibility.
60+
Finnaly, widgets that do not employ the `has_widget_inner_wrapper()` function will behave like unoptimized widgets with two wrapping `<div>` elements.
6261

62+
In any case, whether the experiment is active or not, developer need to think about the future when Elementor merges this feature. To prevent styling issues, make the necessary updates. Add the `has_widget_inner_wrapper()` to all the widgets.
6363
## Examples
6464

6565
### Optimized Widget DOM

0 commit comments

Comments
 (0)