Site logo

[Resolved] Default Content Container width setting

Home Forums Support [Resolved] Default Content Container width setting

Home Forums Support Default Content Container width setting

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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!
    Eric

    #2270686
    Eric

    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.

    #2270717
    Leo
    Staff
    Customer Support

    Hi 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 🙂

    #2271369
    Eric

    Leo,

    Thank you so much for this tip! I will give it a shot.

    Eric

    #2272153
    Leo
    Staff
    Customer Support

    No problem 🙂

    #2558545
    geco

    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

    #2558935
    David
    Staff
    Customer Support

    Hi 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.

    #2559737
    geco

    Thanks for the recommendation,

    It would be nice to be able to implement this for future versions 😉

    All the best

    #2559923
    David
    Staff
    Customer Support

    Ill add it to the feature requests 🙂

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.