- This topic has 11 replies, 3 voices, and was last updated 5 years, 5 months ago by
Leo.
-
AuthorPosts
-
October 30, 2020 at 8:20 pm #1511828
Felix
Hello,
when working within the Block-Editor, selecting GenerateBlocks-Container and trying to make it Full-width, it somehow does not work anymore. I checked the code, compared it to a few older posts of mine and noticed that the “align”:”full”-statement within <!– wp:generateblocks/container {“uniqueId”:”f92d0885″,”align”:”full”} –> is missing.
Best regards
October 30, 2020 at 9:26 pm #1511850Leo
StaffCustomer SupportHi there,
Can you make sure the content container option is set to full?
https://docs.generatepress.com/article/content-container/October 31, 2020 at 8:58 am #1512538Felix
No, it is set to Standard/Default – as it is supposed to be. I do not want the content/text to be full width, just some picture-grids (that I create with GenerateBlocks).
It used to work fine, now it doesn’t, when creating a new post. I checked settings of old/existing posts: When I edit the grid in the above post/link and only change the Block-settings for the GenerateBlock-Container from Full width to contained width and back to Full width, it is NOT Full with anymore in the preview.
For single picture-blocks it works fine, just when setting up grids with GenerateBlocks, the container does not stretch full-width (anymore), even though I select Full width in the Blocks-Layout-settings.
Could you test for yourself and let me know, if you face the same issue. I have the latest versions installed. It s just weird.
Cheers
October 31, 2020 at 10:28 am #1512633Leo
StaffCustomer SupportThe page you’ve linked isn’t using GB for the full-width pictures.
It’s using the
alignfulloption from the image block which is a bit hacky and create horizontal scroll issues from time to time.The only way to create any full-width content using GB is to make sure the theme container is set to full width as explained here:
https://docs.generatepress.com/article/content-container/#full-widthThen to create narrow content, you just need to create a contained block from GB and specify the width:
https://docs.generateblocks.com/article/container-overview/#standalone-blockOctober 31, 2020 at 11:08 am #1512680Felix
Leo, I did as told, it does not work. Even though the preview in the block-editor looks fine, in the front-end it does not.
By adding “align”:”full” manully in the code-editor to the wrapping containers manually, however, I can achive the result I am looking for.
Please check for yourself on desktop, for the full-width grids only visible there.
October 31, 2020 at 11:33 am #1512718Tom
Lead DeveloperLead DeveloperHi there,
It seems to be working fine in the first link you shared: https://www.screencast.com/t/wTQy7jbXhAWr
The inner container is not full width, as it’s set to Contained.
If you set the inner container to “Full width”, the gallery should occupy the full width of the outer container.
Let us know 🙂
October 31, 2020 at 12:04 pm #1512754Felix
Hi Tom,
it does occupy the full width in the block-editor (s. image below), but not on my website.
The code says “innerContainer”:”full”.
This is odd.
Any other ideas?
CheersOctober 31, 2020 at 6:28 pm #1512953Leo
StaffCustomer SupportCheck to see if you have a layout element created that’s setting the content width to
680px.
https://docs.generatepress.com/article/layout-element-overview/#content-1Let me know 🙂
October 31, 2020 at 6:53 pm #1512978Felix
Yes, Leo: the “Single Post Content Width”-Layout, which came with GP, sets the width to 680px.
If I delete that layout, I have to go through all my existing posts and create narrow content? The way you describe here:
“Then to create narrow content, you just need to create a contained block from GB and specify the width:
https://docs.generateblocks.com/article/container-overview/#standalone-block”I really do not wanna “break” anything, nor do I wanna create unnecessary work for myself.
What would you suggest, I do? I wonder, if I shall just use the alignfull option from the image block. Although your statement above worries me.
is a bit hacky and create horizontal scroll issues from time to time.
October 31, 2020 at 7:53 pm #1513001Leo
StaffCustomer SupportYou can add an exclusion rule in that layout to exclude that narrow container width from being applied to that post.
But then yes, for that post, you would need to use the contained block method in GB.
October 31, 2020 at 9:37 pm #1513043Felix
Thanks a lot, Leo. Have a nice day!
November 1, 2020 at 10:35 am #1513638Leo
StaffCustomer SupportNo problem 🙂
You as well!
-
AuthorPosts
- You must be logged in to reply to this topic.