Skip to content

Commit 3310052

Browse files
Update
1 parent 3faf218 commit 3310052

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/widgets/widget-inner-wrapper.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,33 @@ The new, optimized markup, has only one wrapping element:
2828
</div>
2929
```
3030

31-
Elementor had previously utilized unoptimized markup. Nowadays, all widgets use optimized markup.
31+
Elementor had previously utilized unoptimized markup. Nowadays, all Elementor and Elementor Pro widgets use optimized markup. Elementor provided a transition period for external developers to adopt the optimized widget markup.
3232

3333
### Wrapping Elements
3434

35-
The number of wrapping elements that each widget needs is up to the widget developer. It provides external developers a transition period to move to optimized widget markup.
35+
The number of wrapping elements required for each widget is determined by the widget developer. Elementor provided a transition period for external developers to adopt the optimized widget markup.
3636

37-
Legacy widgets that require both `<div>` wrappers, including the inner `.elementor-widget-container` wrapper, should add the following method to the widget:
37+
Legacy widgets that require both `<div>` wrappers, including the inner `.elementor-widget-container` wrapper, use the following method in the widget:
3838

3939
```php
4040
public function has_widget_inner_wrapper(): bool {
4141
return true;
4242
}
4343
```
4444

45-
New widgets that can work with only the outer `<div>` wrapper, without the inner `.elementor-widget-container` wrapper, should add the following method to the widget:
45+
New widgets that can work with only the outer `<div>` wrapper, without the inner `.elementor-widget-container` wrapper, use the following method in the widget:
4646

4747
```php
4848
public function has_widget_inner_wrapper(): bool {
4949
return false;
5050
}
5151
```
5252

53-
Finnaly, widgets that do not employ the `has_widget_inner_wrapper()` function will behave like unoptimized widgets with two wrapping `<div>` elements.
53+
Finnaly, widgets that do not employ the `has_widget_inner_wrapper()` function will behave like unoptimized widgets with two wrapping `<div>` elements. This behaviour may change in the future to optimize the remaining widgets.
5454

5555
### Future
5656

57-
Developers need to think about the future when unoptimized widgets will no longer be rendered. To prevent compatibility and styling issues, all widgets should have `has_widget_inner_wrapper()` method, returning `false`.
57+
Developers should plan ahead for when unoptimized widgets will stop being rendered. To avoid compatibility and styling problems, every widget should include the `has_widget_inner_wrapper()` method set to return `false`.
5858

5959
## Examples
6060

0 commit comments

Comments
 (0)