"Always Open Block Settings/Styles" Block Editor Preference for Sidebar Panels
What problem does this address?
Advanced FSE/Block Editor users find it tedious that the right sidebar individual Block Settings/Styles Carrot/3-Dot Sub-Panels are always closed by default. Examples: Settings > Position, Advanced, Etc Styles > Typography (and all subsections), Dimensions, Etc
To open them all you need to perform multiple actions one by one.
Imagine you need to do something repetitive like add an Advanced class for a bunch of blocks. Every time you click on a different block, Advanced is collapsed for that block. You have to first click to open that carrot. Same for every time you want to change a font, size, or line height. You have to open all those via click>dropdown>select one by one. It can be maddening and a huge waste of time! :-)
History: I seem to remember in earlier versions of the block editor interface, these panels were all in one tab and all open but people changed the default because it looked cluttered for people just starting with Wordpress.
What is your proposed solution?
Similar to "Always Open List View," we should have a Preference to have all collapsed sidebar areas open by default if the user chooses. "Always Open Block Settings/Styles"
Related Issues?
It's suprising how little discussion I've found (in open issues) about this—I searched all over this repository to find discussion of this annoyance and only found the Related Issues & Discussions below.
Editor preferences are saved in database every time the Settings sidebar opens/closes #61384 https://github.com/WordPress/gutenberg/issues/61384
Dimension Tools and Controls #28356 https://github.com/WordPress/gutenberg/issues/28356
Related Discussion
Matt Mullenweg noticed this speedbump today in realtime during Jamie WP's speed build challenge as well!
It is discussed here as a workaround (that does not work as well as proposed solution below would): https://snipsnip.pro/s/751
https://wordpress.org/support/topic/block-styles-settings-interface/
Someone else wanting option to swap order of Settings/Styles: https://github.com/WordPress/gutenberg/discussions/50205
Screenshots:
Hi @jhmonroe,
I’ve been reviewing this issue and tried to reproduce it on my local environment, but I haven’t been able to replicate the behavior. Specifically:
After expanding the Advanced dropdown for a block (e.g., Paragraph), switching to another block (e.g., Heading) does not collapse the Advanced dropdown; it remains open as expected. I’ve tested this with different block types and configurations, but the dropdown behavior stays consistent.
Here are the details of my environment:
- WordPress Version: 6.8-alpha-59366
- Gutenberg Version: 19.8.0
- Theme: Twenty Twenty-Five
- Browser: Chrome 131.0.6778.109 (Official Build) (arm64)
Could you share additional details to help reproduce the issue?
Hi @snehapatil2001 that wasn't exactly the enhancement I was describing. What you're describing is the behavior of the database remembering how a user left the panels open/closed. That does behave as expected and was discussed in the tickets I mentioned above (https://github.com/WordPress/gutenberg/issues/61384)
I was describing a feature request for an available preference under 3dot>preferences>General that allows someone to always have them all open the same way "Always Open List View" is a preference
Here's another discussion of this I just found today #55994: https://github.com/WordPress/gutenberg/issues/55994
I second this - I have been adding margin to multiple blocks and it is very tedious to have to click Styles -> Dimensions -> Margin for every block before I can set the values. Advanced users who will not be overwhelmed by a "cluttered" interface should have the option to keep all the collapsed menus open, to reduce clicks. On a similar note, it would be great to be able to unlink margin and padding values by default.
Has there been any advancements to this? I recently started using Wordpress and its painful to have to click the 3 dots every time to edit sub-settings for any block.
Has there been any advancements to this?
I started today a javascript project that opens all settings every time you select a block. It looks promising, but still needs heavy debugging and rewriting:
https://github.com/shula/show-all-gutenberg-settings
@shula this is awesome, thank you for doing this! I've starred your repo and commenting for better reach! I'll see if i can collaborate with you on this as its really annoying how Wordpress devs have "structured" their app.
I left this issue on your project @shula :
Hey there, love the description of the project as I'm feeling the exact same way. Super frustrating! I don't want all the controls to be open by default, but I need to adjust spacing values (padding and margin) very often, so I use this code snippet that is in fact working:
(function() {
function enableAndExpandSpacingControls() {
const dimensionsPanel = document.querySelector('.dimensions-block-support-panel');
if (!dimensionsPanel) return;
const menuButton = dimensionsPanel.querySelector('.components-dropdown-menu__toggle');
if (!menuButton) return;
const toolsPanelItems = dimensionsPanel.querySelectorAll('.components-tools-panel-item');
const hasVisibleControls = toolsPanelItems.length > 0 &&
Array.from(toolsPanelItems).some(item => item.querySelector('button'));
if (!hasVisibleControls && menuButton.getAttribute('aria-expanded') === 'false') {
menuButton.click();
setTimeout(() => {
const popover = document.querySelector('.components-dropdown-menu__popover');
if (popover) {
popover.style.opacity = '0';
popover.style.pointerEvents = 'none';
}
const menuItems = document.querySelectorAll('.components-dropdown-menu__menu .components-menu-item__button[aria-checked="false"]');
menuItems.forEach(item => {
item.click();
});
setTimeout(() => {
menuButton.click();
setTimeout(() => {
if (popover) {
popover.style.opacity = '';
popover.style.pointerEvents = '';
}
unlinkSpacingValues();
}, 100);
}, 150);
}, 50);
} else if (hasVisibleControls) {
unlinkSpacingValues();
}
}
function unlinkSpacingValues() {
const spacingControls = document.querySelectorAll('.spacing-sizes-control');
spacingControls.forEach(control => {
const linkButton = control.querySelector('.spacing-sizes-control__header button.components-button.has-icon');
if (linkButton) {
const svg = linkButton.querySelector('svg path');
if (svg) {
const pathD = svg.getAttribute('d');
if (pathD && pathD.includes('M10 17.389H8.444A5.194')) {
linkButton.click();
}
}
}
});
}
if (wp.data) {
let lastBlockId = null;
wp.data.subscribe(() => {
const selectedBlock = wp.data.select('core/block-editor').getSelectedBlock();
if (selectedBlock && selectedBlock.clientId !== lastBlockId) {
lastBlockId = selectedBlock.clientId;
setTimeout(enableAndExpandSpacingControls, 250);
}
});
}
})();
(Should be relatively easy to adapt this to more controls like font settings, etc.) The panels flash for a second, but I didn't find a way around that so far.
It never was extremely annoying until I was testing a block editor plugin that has all of its options as collapsed settings. Any news on this issue?
It never was extremely annoying until I was testing a block editor plugin that has all of its options as collapsed settings. Any news on this issue?
yes. I stopped using wordpress.
Thanks for the detailed write-up and to everyone who added use cases! This is the same request tracked in #55994 (a user preference to show all sidebar settings/panels expanded by default), so I'm closing this one as a duplicate to keep the discussion in one place. Please add your feedback and +1s there.