[Support request] Narrow Page Template

Home Forums Support [Support request] Narrow Page Template

Home Forums Support Narrow Page Template

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #414012
    Thomas

    What would be the best way to create a narrow width page for certain posts/pages? Max-width: 840px on desktop as well as centering.

    I know i could add a php with custom code but i was wondering if there is a better way.

    See url for example.

    I just did a quick div for illustration reasons.

    Could i maybe use a tag? and then change the width of the container?

    #414313
    Leo
    Staff
    Customer Support

    Hi there,

    If you use Tom’s Simple CSS plugin, it gives you a CSS metabox for each page, then you can add this CSS to change the width for a specific page like this:

    body .grid-container {
        max-width: 840px;
    }

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

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