Archived topic
Full width block to replace sections
3 replies · Started by Marius on October 7, 2022
Hello,
I have a site with sections. Some sections have a coloured background which are full width from left to right.
Now I want to rebuild the site with blocks because section are no more.
But when I put a container in the site and set it to full width, it is not full width from left to right, only inside the container.
How can I make them full width?
Hi there,
you should:
1. Set the Content Container to Full Width:
https://docs.generatepress.com/article/content-container/
2. Then build your various sections with the GenerateBlocks Container Block. By default they will fill the width of the page.
Hi David,
okay, if I do 1. will then the content width stay the same like now?
When you do #2 you can a) set the Inner Container Width which will default to the customizer layout width and b) set the Padding on the Container ( eg. 40px ).
Using the above method, what you're doing is removing the Customizer > Layout > Container -> Width and Padding, and then manually adding that to each Container Blocks.