[Resolved] How to set specific content width for full-width post?

Home Forums Support [Resolved] How to set specific content width for full-width post?

Home Forums Support How to set specific content width for full-width post?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #547015
    Aliaksandr

    Hello.

    Most of my posts (which use “Content / Sidebar” template) are 728px wide.

    For some posts, I want to use “Content (no sidebars)” template and I still want them to be 728px wide. By default they are 1080px wide.

    How do I change them to 728px too using CSS?

    Thanks.

    #547443
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

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

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

    #549296
    Aliaksandr

    It worked. Thank you very much!

    #549556
    Leo
    Staff
    Customer Support

    No problem 🙂

    #566545
    Arya

    Hi Leo,

    Should I use different CSS for homepage without sidebar?

    #566557
    Leo
    Staff
    Customer Support

    For home page it would just be:

    .home .site.grid-container {
        max-width: 728px;
    }

    If this doesn’t work, any chance you can open a new topic?

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