This topic contains 8 replies, has 4 voices, and was last updated by Natalie 1 month ago.
March 28, 2020 at 9:13 am #1213182
Would it be possible to allow one block to be set full width while leaving the page builder container set to default?
At present for a block to span the full width, the page builder container must also be set to full width. While a container block with full width settings will show that in the editor, it will still have default padding applied on the front end (unless the page builder container is changed).
An example page – two paragraphs, one image, two paragraphs – I’d like the option to set only the image to be full width without changing the page builder container, and then having to add another two containers minimum for the paragraphs above and below.
This can be done with other themes/builders, and I’d like to keep the blocks added to a page to a minimum to make sure it’s as simple for clients as possible.
Paul.March 28, 2020 at 10:46 am #1213272
Leo Customer SupportMarch 28, 2020 at 11:31 am #1213299
The container block from GenerateBlocks yeah. Setting that block to full width in the editor will give the impression it will override page padding, but that’s not reflected on the front end. The Page Builder option still also has to be set to full width, otherwise the container block will inherit the same padding as all other blocks.
I wanted to override the padding for one block only, and leave the Page Builder setting as ‘default’ but it doesn’t look like that’s possible. Could that be added in the future?
Paul.March 28, 2020 at 12:12 pm #1213343
Leo Customer Support
There is no plan to make that possible as for now.
I can’t see how that would work nicely and make sense as then the theme padding would need to overwrite the padding from container block which would make it very confusing.
You should be able to accomplish whatever you have in mind with full width in page builder container and multiple container blocks though.March 28, 2020 at 12:26 pm #1213352
I could do it with multiple container blocks but I wouldn’t be comfortable then passing that over to a client. I just don’t think Gutenberg is user friendly enough for that. I’ll scratch it for now.March 28, 2020 at 12:39 pm #1213366
The Gutenberg demo is a good example of what I mean – https://wordpress.org/gutenberg/March 28, 2020 at 1:11 pm #1213387
Leo Customer SupportMarch 28, 2020 at 1:53 pm #1213415
I think this is actually possible in the alpha 3 version of the plugin. You set full width content, container width to full width and delete the container width value like in this screenshot. This is a popular design by the way 🙂
Agressively support the kind of work you want to see. Buy it. Talk about it. Review it.April 23, 2020 at 6:31 am #1251212
What @Jamal has suggested is correct. It is accomplished by GP adding the class ‘full-width-content’ to the body tag of the page which is exactly the same as setting the page builder container to be full width.
If that is what you want then it is much easier for it to happen automatically when you choose ‘full width’ for a specific container.
You must be logged in to reply to this topic.