Hey John
Let’s see if I got this right.
In Gutenberg version 7.7.1.
I added 3 columns.
Btw notice on the bottom the breadcrumbs bar that looks like this:
Document -> Columns -> Column (based on what is selected)
I added a paragraph block into the first column.
Clicked the bottom breadcrumbs so that I selected the first column.
Then went to the sidebar. Clicked Advanced. Added a CSS class name.
Added class names to the other columns where I needed to do so.
Then I went to the Appearance -> Theme Editor.
Stylesheet style.css. Added the needed CSS.
Hopefully that helps. As a month as passed by you have likely found out how to do this already.
Thank you Paal!
I needed it programatically. Yes, I got it doing something like this:
wp.blocks.registerBlockVariation(
'core/columns',
{
name: '70-30',
title: 'Dos columnas 70-30',
isDefault: false,
attributes: {
className: 'columnas-70-30'
},
innerBlocks: [
[ 'core/column', { width: 70, className: 'ancho-70' }, [ [ 'acf/noticia-portada', { className: 'is-style-cover-white' } ], [ 'acf/noticia-portada' ] ] ],
[ 'core/column', { width: 30, className: 'ancho-30' }, [ [ 'acf/noticia-portada' ], [ 'acf/noticia-portada' ] ] ]
],
icon: icon7030,
scope: [ 'block' ]
}
);
By the way, t only works with wordpress 5.4
Hey John
That sure makes it helpful that 5.4 will be released at the end of March…:)