[Support request] text container width

Home Forums Support text container width

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #927666
    Matthew

    I like about the width of the main container at it’s defaults (I haven’t altered any widths) with the right sidebar on.

    The text lines have about the right about of words.

    For pages that I want the right sidebar turned off, then the text becomes too wide, so what is the correct way to reduce the right margin for the text without modifying the actual container?

    thanks,

    #927683
    Leo
    Staff
    Customer Support

    Hi there,

    What if we set a different content container width for those pages without a sidebar?

    If there is a specific logic (like all pages or all posts), we can use the content width layout element option:
    https://docs.generatepress.com/article/layout-element-overview/#content-1

    Or we can use this CSS to set a separate content container width for those pages without a sidebars:

    body.no-sidebar .site.grid-container {
       max-width: 800px;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps 🙂

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