Skip to content
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

Setting global defaults for blocks in the UI #45574

Open
cagrimmett opened this issue Nov 6, 2022 · 1 comment
Open

Setting global defaults for blocks in the UI #45574

cagrimmett opened this issue Nov 6, 2022 · 1 comment
Labels
[Feature] Block settings menu The block settings screen [Type] Enhancement A suggestion for improvement. [Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable

Comments

@cagrimmett
Copy link

What problem does this address?

I'd like the ability to set new default settings for Gutenberg blocks in the UI. It is frustrating to have to update settings for each instance of a block when you add it if your use is different than the current default.

For example, I use the Separator block often, but I prefer to use it with the Dots option and Margins set to 5. If I use the Separator block 5 times in post, I either need to change those settings 5 times or copy and paste one instance with updates settings 5 times.

It would be great if this worked for not only core blocks but blocks installed from plugins and custom blocks defined in the theme as well.

What is your proposed solution?

Maybe a screen that lists all available blocks in an editor screen. When you click on one of those blocks, it opens the settings sidebar, just like when you are editing a page and a post. When you save that settings page, any block settings you've modified become the new default settings for future uses of that block.

Another option could be a button under the "Advanced" toggle panel that allows the user to make the current block settings the new default settings for future uses of that block.

@talldan
Copy link
Contributor

talldan commented Nov 8, 2022

@cagrimmett This feature does exist if you're using a block based theme. It's in the site editor in the styles panel. The 'blocks' option at the bottom of this screenshot:
Screen Shot 2022-11-07 at 6 44 57 pm

You can't adjust everything right now (like the dots option), but can set margin. There are also a couple of other convenience features that are being worked on:

What you can do is probably a bit dependent on what theme your using though.

@karenroldan karenroldan added [Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable [Feature] Block settings menu The block settings screen [Type] Enhancement A suggestion for improvement. labels Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block settings menu The block settings screen [Type] Enhancement A suggestion for improvement. [Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable
Projects
None yet
Development

No branches or pull requests

3 participants