A way to show variation picker after block was placed? #56750
-
More specificaly is there a way to show a variation picker for core/columns after they've been propagated with inner blocks? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
It doesn't appear to be possible to use a back button with the variation picker; according to #31593 (the columns block uses the same code to display the variation picker) |
Beta Was this translation helpful? Give feedback.
-
@QuietNoise , block variation picker will appear when you remove inner blocks, and before you do this, you can use transform variations (create transform variation for every column variant) to switch between layouts, this is how it was in my Section With Sidebar Block |
Beta Was this translation helpful? Give feedback.
-
Can't change the width of individual columns after selecting a variation? Do you mean that you need a UI that can change this width all at once according to predefined variations? |
Beta Was this translation helpful? Give feedback.
-
QuietNoise, On the Block Editor Handbook, there is an article called 'Variations.' I think it's what you are looking for. |
Beta Was this translation helpful? Give feedback.
Just like the Group block, if you filter the variations of the Columns block and add
transform
to thescope
property, you will be able to display the variation picker in the block sidebar. However, I don't think this simple approach can be used in cases such as the Columns block where the variation and the actual block state do not match.