# Container Element
Elementor Core AdvancedThe container is a layout element with nested capabilities, meaning that it can hold other elements. The container object contains information like the element id, element type, styling settings and all the element inside the container.
# JSON Structure
Container element structure:
{
"id": "12345678",
"elType": "container",
"isInner": false,
"settings": [],
"elements": []
}
1
2
3
4
5
6
7
2
3
4
5
6
7
# JSON Values
Argument | Type | Description |
---|---|---|
id | string | The unique identification key representing the element. |
elType | string | The element type. |
isInner | boolean | Whether the element is an inner element. |
settings | array /object | The element data from the panel, holding the values from the editor controls. It's an empty array if settings are not defined, or an object if the element has settings. |
elements | array | An array of objects that holds all the nested elements. |
# Nested Elements
By design, conteiners can hold nested elements. All the inner elements are stored in the elements
value, and they can have their own nested elements.
# Examples
# A Page with Containers
An example of a page that has two empty containers:
{
"title": "Sample Page",
"type": "page",
"version": "0.4",
"page_settings": [],
"content": [
{
"id": "6af611eb",
"elType": "container",
"isInner": false,
"settings": [],
"elements": []
},
{
"id": "7fb170b9",
"elType": "container",
"isInner": false,
"settings": [],
"elements": []
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# A Page with Nested Container
An example of a page that has a container element with nested containers:
{
"title": "Test Page",
"type": "page",
"version": "0.4",
"page_settings": [],
"content": [
{
"id": "458aabdc",
"elType": "container",
"isInner": false,
"settings": [],
"elements": [
{
"id": "46ef0576",
"elType": "container",
"isInner": false,
"settings": [],
"elements": [
{
"id": "4a59f2e3",
"elType": "container",
"isInner": false,
"settings": [],
"elements": []
}
]
}
]
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# A Page with a Container and Custom Settings
An example of a page that has a container with some custom styling settings:
{
"title": "Test Page",
"type": "page",
"version": "0.4",
"page_settings": [],
"content": [
{
"id": "458aabdc",
"elType": "container",
"isInner": false,
"settings": {
"height": "min-height",
"custom_height": {
"unit": "vh",
"size": 70,
"sizes": []
},
"content_position": "middle",
"html_tag": "section"
},
"elements": []
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24