-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide ability to Clear Inactive Widgets #26232
Comments
If we do add the clear button maybe it can be in the sidebar settings and thus available to any sidebar not only the inactive widgets allowing users to clear a sidebar and start from scratch. |
That's awesome @mapk, and looks great. Is saving the current widgets to session/local a huge overhead? Just thinking even with the AYP message that storing in browser memory the previous state will allow an undo. |
Oh maybe? I'm not entirely sure. |
Maybe worth noting that if we fix #28267 then it could be done by selecting all the widgets and delete them at once. IMHO, the widgets editor is a complete different editing experience, it requires the users to hit "Update" manually rather than relying on auto-saving as in the original screen. We should provide a shortcut to allow them to delete all widgets in a widget area at once, but I don't think that we should auto-save it. A benefit of this approach is that the users could preview the changes and potentially restore back before updating. |
I agree with @kevin940726. Could we use existing block editor patterns (select all) here? cc. @critterverse |
Closing this in lieu of #28267. I think selecting multiple blocks and pressing Remove blocks, or pressing Cmd+A and then Del is a much more natural way to do this. |
Is your feature request related to a problem? Please describe.
Stemming from - https://make.wordpress.org/core/2020/09/30/call-for-testing-the-widgets-screen-in-gutenberg-9-1/#comment-40072
This would bring feature parity with the legacy widget editor;

This is useful when there's alot of inactive widgets from switching themes. You currently can remove them one at a time in the new Widget Editor, but a button to clear them all would be helpful.
Describe the solution you'd like
Add a button to 'Clear Inactive Widgets' to the Inactive Widgets section of the new Widget Editor.
The text was updated successfully, but these errors were encountered: