Site logo

Archived topic

text container width

1 reply · Started by Matthew on June 12, 2019

Viewing posts 1–2 of 2

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,

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 :)

This archived topic is closed to new replies.