Is it possible to put sections within sections at all? It would be very helpful for me to be able to do so due to having several options per section and I don’t want the user to be overloaded with information.
2 comments
Comments are closed.
Is it possible to put sections within sections at all? It would be very helpful for me to be able to do so due to having several options per section and I don’t want the user to be overloaded with information.
Comments are closed.
There is no core customizer behavior that supports nested sections. However, you can roll your own customizer control which contains its own accordion sections and other controls.
Keep in mind that each control relates to exactly one theme_mod variable, so my suggestion would be to implement a fairly generic control that is collapsible and contain a variety of form elements.
Old question but new Answer
There is now ways to add nested sections, with Customizer Panels. Panels can group customizer sections together and can also set access permission.
see https://developer.wordpress.org/reference/classes/wp_customize_manager/add_panel/
Example: