When I enable the Collapse on page load option in the settings, I am facing two problems.
1- When I click on the section widget, it is added as Collapse. While there is a container inside it.
2- When we click on a layout in the structure panel and add the desired widgets inside it, the widgets are not displayed in the structure panel. Because the layout mode is Collapse. Therefore, we have to click on the desired layout so that the widgets inside it are visible in the structure panel.
Please note that the Collapse on page load feature should only work when the editor is loaded. Not when we add the desired widgets.
The behavior has been the same since version 1.5, when the setting was introduced, and so far, no one has complained about it. However, it makes sense that nestable elements such as section > container are not collapsed when inserted.
You can influence this by holding down shift while adding the element.
I think I did not convey the meaning of the second item well. In fact, the problem is :
When a layout is active and we add widgets inside it, these widgets are not displayed in the structure panel normally. Because the container in which we add the widget is Collapsed. Therefore, we must click on the desired layout so that the widgets added inside it are visible. I hope the following video is helpful.
I understood you correctly, but the behavior is correct. After all, you have selected the outer element. Accordingly, the elements are added to the outer element (the section).
As I said, if you hold down shift while clicking on, for example, “Heading” to add the heading, the section opens, and you see where the elements end up. If you want to place them in the container, select the container. I understand the idea, but this also applies to all other nestable elements since we can’t know what exactly you want to do next and where you want to add the elements. That would be clairvoyance
This makes things more complicated again because no matter what you do, someone will object We’ve been talking about this within the team and think it makes sense to display the nestable element open after adding it since you save yourself a click or two (to open it). Normally you add more elements directly after that, or you want direct access to one of the inner elements. But workflows differ, of course…
Must be like herdng cats with everyone wanting different behaviours.
Personally I add elements en masse and then move them around afterwards to position them correctly. Only then do I actually configure any elements. But I know that others work completely opposite.
Also worth looking at Advanced Themer which offers lots of editor improvements.