- This topic has 8 replies, 4 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
July 1, 2022 at 12:14 pm #2270620
Eric
Hi GP team, thank you for such an amazing product! I was unable to find an answer in the forum, thus the question here.
When you edit a page, Content Container is set to default. The default setting is Contained, and there doesn’t seem to be a way to change the default to Full Width in the Customizer.
You can change the default to Full Width in a Layout Element, but then it grays out the option in the page editor.
So, is there no way to set the default to “Full Width”, while still having the ability to change it to “Contained” on a per-page basis?
I feel like if there’s an option for “Default”, then there ought to be a place in the settings to specify what the default setting should be.
Thanks so much!
EricJuly 1, 2022 at 2:36 pm #2270686Eric
I suspect you might want to know a scenario where this makes sense. If I were building a site from the ground up, this wouldn’t be an issue.
But in this case, I’m rebuilding a site. I switched themes to GP and rebuilt the homepage. Presently, I am using a Layout Element to force everything to be Full Width. But now I need to tackle the interior pages. I’d love the ability to keep Full Width as the default setting (so it doesn’t mess up the old untouched pages), meanwhile having the ability to individually toggle pages to be Contained as I slowly rebuild them.
I’m getting the feeling that I’ll need to disable Full Width in the Layout Element. Then edit every page’s Content Container setting to be Full Width. Then gradually switch each to be Contained as I rebuild them.
July 1, 2022 at 4:16 pm #2270717Leo
StaffCustomer SupportHi Eric,
So, is there no way to set the default to “Full Width”, while still having the ability to change it to “Contained” on a per-page basis?
That is correct. I can’t recall this being asked before either.
This CSS should work for that purpose though:
body:not(.contained-content) .container.grid-container { max-width:100%; }Then just remove the content padding in the customizer:
https://docs.generatepress.com/article/content-padding/Let me know if this helps 🙂
July 2, 2022 at 11:39 am #2271369Eric
Leo,
Thank you so much for this tip! I will give it a shot.
Eric
July 3, 2022 at 2:05 pm #2272153Leo
StaffCustomer SupportNo problem 🙂
March 7, 2023 at 3:58 am #2558545geco
Hi Leo,
I have the same problem, how can I set the default to be full width? css is not an optimal solution for me.
Greetings
March 7, 2023 at 7:54 am #2558935David
StaffCustomer SupportHi there,
you would have to use a Loyout Element to set all pages or posts or wherever to full width.:
https://docs.generatepress.com/article/layout-element-overview/
Its not possible to change the default setting in the editor as that value is stored in the Posts Meta.
March 8, 2023 at 2:02 am #2559737geco
Thanks for the recommendation,
It would be nice to be able to implement this for future versions 😉
All the best
March 8, 2023 at 5:08 am #2559923David
StaffCustomer SupportIll add it to the feature requests 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.