When we add a new item, a new panel which allows us to pick up a item displays on the right, how can i do the same ?
Thank you !
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
This slide-out panel for picking a widget or nav menu item to add is specific to the implementations of Widgets and Nav Menus in the Customizer. There is no generic facility for adding this UI feature, so I suggest looking at Core to look at how it is implemented there to copy into your plugin. For nav menus, see the
AvailableMenuItemsPanelView JS and the corresponding CSS: