- This topic has 10 replies, 2 voices, and was last updated 5 years, 11 months ago by
Leo.
-
AuthorPosts
-
May 8, 2020 at 10:37 am #1275716
Rylan Urban
Hello, I’m trying to make a single page full width (similar to the home page). However, I don’t want to use sections – I just want to design with the basic gutenberg.
Is there any way to enable full width container (and no padding) for a single page to achieve the effect that was possible with sections? Thank you!
May 8, 2020 at 11:10 am #1275748Leo
StaffCustomer SupportHi there,
This should help:
https://docs.generatepress.com/article/page-builder-container/May 8, 2020 at 11:19 am #1275759Rylan Urban
Thanks, but I want to change the size of the container itself for this one page.
Selecting “Full Width” only sets it to 100% of the *container* size (1200px) which is set in my customizer.
However, I’m looking for 100% of the *screen* size (as is the case with the sections add-on).
Thanks!
May 8, 2020 at 11:29 am #1275769Leo
StaffCustomer SupportHmm no – setting it to Full Width would be 100% of the screen.
Setting to Contained would be 100% of the container size.
May 8, 2020 at 11:37 am #1275778Rylan Urban
Hmm strange – I have it set to Full Width it isn’t still contained within the content area. (i have not active conflicting layout elements).
Any suggestions?
May 8, 2020 at 11:43 am #1275788Leo
StaffCustomer SupportRemove this CSS you’ve added:
body.page.no-sidebar .site.grid-container { max-width: 950px; }May 8, 2020 at 12:24 pm #1275833Rylan Urban
Ahh ok great! So, that leaves one issue:
– I want 1200px for layout: content + sidebar (got it!)
– I want max 950px for layout: content + no-sidebar (got it!)
– Full screen content for that one page only.If I remove the CSS, objective 1 and 3 are achieved, But then my content + no-sidebar pages default back to 1200px. Is there a work-around for this, since I only need to change this one page?
Rylan
May 8, 2020 at 12:26 pm #1275837Leo
StaffCustomer SupportHave you tried creating a layout element for that instead of using CSS?
https://docs.generatepress.com/article/layout-element-overview/#content-1Then you can set the condition using the display rules.
May 8, 2020 at 12:57 pm #1275878Rylan Urban
Wow – yup that works perfectly. Gosh I love GP products. I set that up and I’m able to use the GenerateBlocks container block to set a max width for the content as well – exactly what I wanted.
BTW, are you guys still planning on releasing that plugin? and/or making it part of GP?
May 8, 2020 at 1:58 pm #1275941Rylan Urban
And thanks!
May 8, 2020 at 3:09 pm #1275991Leo
StaffCustomer SupportGenerateBlocks will be a separate plugin. Hoping to release to .org soon 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.